diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-09 15:29:01 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-02-07 03:06:22 -0500 |
commit | 54bb6552bd9405dc7685653157a4ec260c77a71c (patch) | |
tree | 7baad9e6cfacd055fd8076d52748a2d3f71d7551 /init | |
parent | 8eb988c70e7709b7bd1a69f0ec53d19ac20dea84 (diff) | |
download | linux-stable-54bb6552bd9405dc7685653157a4ec260c77a71c.tar.gz linux-stable-54bb6552bd9405dc7685653157a4ec260c77a71c.tar.bz2 linux-stable-54bb6552bd9405dc7685653157a4ec260c77a71c.zip |
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>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index dac44a9356a5..4cb47a159f02 100644 --- a/init/main.c +++ b/init/main.c @@ -657,9 +657,9 @@ asmlinkage void __init start_kernel(void) proc_caches_init(); buffer_init(); key_init(); + radix_tree_init(); security_init(); vfs_caches_init(totalram_pages); - radix_tree_init(); signals_init(); /* rootfs populating might need page-writeback */ page_writeback_init(); |