integrity: add ima_counts_put (updated)
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 26 Jun 2009 18:05:27 +0000 (14:05 -0400)
committerJames Morris <jmorris@namei.org>
Sun, 28 Jun 2009 22:59:10 +0000 (08:59 +1000)
commit94e5d714f604d4cb4cb13163f01ede278e69258b
tree1f7f50f5eddf74e6930eaf0384538549f263b8fe
parent79b854c549c62c54fa27f87e04465c01db889f8d
integrity: add ima_counts_put (updated)

This patch fixes an imbalance message as reported by J.R. Okajima.
The IMA file counters are incremented in ima_path_check. If the
actual open fails, such as ETXTBSY, decrement the counters to
prevent unnecessary imbalance messages.

Reported-by: J.R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
fs/namei.c
include/linux/ima.h
security/integrity/ima/ima_main.c