]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05d5d62eed4003ef71721eb7db63676f79bcb409
tree1f7f50f5eddf74e6930eaf0384538549f263b8fe
parent796f5bd99ae4a54e99f6f4896dbfb86129dff2c5
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