IMA: drop refcnt from ima_iint_cache since it isn't needed
authorEric Paris <eparis@redhat.com>
Mon, 25 Oct 2010 18:42:12 +0000 (14:42 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 18:37:19 +0000 (11:37 -0700)
commit64c62f06bef8314a64d3189cb9c78062d54169b3
tree63f542bf6a0de4eb2c9742376f7c314ac78e65ec
parentbc7d2a3e66b40477270c3cbe3b89b47093276e7a
IMA: drop refcnt from ima_iint_cache since it isn't needed

Since finding a struct ima_iint_cache requires a valid struct inode, and
the struct ima_iint_cache is supposed to have the same lifetime as a
struct inode (technically they die together but don't need to be created
at the same time) we don't have to worry about the ima_iint_cache
outliving or dieing before the inode.  So the refcnt isn't useful.  Just
get rid of it and free the structure when the inode is freed.

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