]> git.baikalelectronics.ru Git - kernel.git/commit
IMA: explicit IMA i_flag to remove global lock on inode_delete
authorEric Paris <eparis@redhat.com>
Mon, 25 Oct 2010 18:42:19 +0000 (14:42 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 18:37:19 +0000 (11:37 -0700)
commit218ac7ecc94a1270b38bf34cf2acbf9a7f591b49
tree43a1d76bee477dbaa682233979e86f58a98369f0
parent138d2af40bd5d1fc32c00263e8defbb3307e6c1c
IMA: explicit IMA i_flag to remove global lock on inode_delete

Currently for every removed inode IMA must take a global lock and search
the IMA rbtree looking for an associated integrity structure.  Instead
we explicitly mark an inode when we add an integrity structure so we
only have to take the global lock and do the removal if it exists.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/fs.h
security/integrity/ima/ima_iint.c
security/integrity/ima/ima_main.c