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)
commit9353384ec8128cb443463016bbabb44ca857ff52
tree411ff22e85868aea1575d8b133187def3b0e0498
parentec29ea544b1ce204ba3575ba05fccf3069d00c3f
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