ima: initialize ima before inodes can be allocated
authorEric Paris <eparis@redhat.com>
Wed, 9 Dec 2009 20:29:01 +0000 (15:29 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 7 Feb 2010 08:06:22 +0000 (03:06 -0500)
commit54bb6552bd9405dc7685653157a4ec260c77a71c
tree7baad9e6cfacd055fd8076d52748a2d3f71d7551
parent8eb988c70e7709b7bd1a69f0ec53d19ac20dea84
ima: initialize ima before inodes can be allocated

ima wants to create an inode information struct (iint) when inodes are
allocated.  This means that at least the part of ima which does this
allocation (the allocation is filled with information later) should
before any inodes are created.  To accomplish this we split the ima
initialization routine placing the kmem cache allocator inside a
security_initcall() function.  Since this makes use of radix trees we also
need to make sure that is initialized before security_initcall().

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
init/main.c
security/integrity/ima/ima.h
security/integrity/ima/ima_iint.c
security/integrity/ima/ima_main.c