]> git.baikalelectronics.ru Git - kernel.git/commit
ima: only insert at inode creation time
authorEric Paris <eparis@redhat.com>
Fri, 4 Dec 2009 20:47:52 +0000 (15:47 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 16 Dec 2009 17:16:46 +0000 (12:16 -0500)
commitf7d805088c30b23be46d848efc7572ee052bc82f
tree411ff22e85868aea1575d8b133187def3b0e0498
parent15716cbb56274e77a176d8ac7872ba550cfaf38b
ima: only insert at inode creation time

iints are supposed to be allocated when an inode is allocated (during
security_inode_alloc())  But we have code which will attempt to allocate
an iint during measurement calls.  If we couldn't allocate the iint and we
cared, we should have died during security_inode_alloc().  Not make the
code more complex and less efficient.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/integrity/ima/ima.h
security/integrity/ima/ima_iint.c
security/integrity/ima/ima_main.c