Commit 81fc7a04 authored by David Howells's avatar David Howells Committed by Linus Torvalds

[PATCH] move key_init to security_initcall

During system boot many probes, etc.  will generate upcalls to userspace
via call_usermodehelper().  This has the effect of calling execve() before
the key subsystem has been initialized, and thus Oopsing on a NULL key_jar
during key_alloc().  Move key_init to security_initcall so that it's called
along with other security initialization routines which have similar
requirements.
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ac58b1e6
...@@ -1036,4 +1036,4 @@ static int __init key_init(void) ...@@ -1036,4 +1036,4 @@ static int __init key_init(void)
} /* end key_init() */ } /* end key_init() */
subsys_initcall(key_init); security_initcall(key_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment