Commit d52dd365 authored by Chris Wright's avatar Chris Wright Committed by Linus Torvalds

[PATCH] lsm: rename security_scaffolding_startup to security_init

Rename security_scaffolding_startup() to security_init().  It always
bothered me.
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2b14f6e3
...@@ -1903,7 +1903,7 @@ static inline int security_netlink_recv(struct sk_buff * skb) ...@@ -1903,7 +1903,7 @@ static inline int security_netlink_recv(struct sk_buff * skb)
} }
/* prototypes */ /* prototypes */
extern int security_scaffolding_startup (void); extern int security_init (void);
extern int register_security (struct security_operations *ops); extern int register_security (struct security_operations *ops);
extern int unregister_security (struct security_operations *ops); extern int unregister_security (struct security_operations *ops);
extern int mod_reg_security (const char *name, struct security_operations *ops); extern int mod_reg_security (const char *name, struct security_operations *ops);
......
...@@ -555,7 +555,7 @@ asmlinkage void __init start_kernel(void) ...@@ -555,7 +555,7 @@ asmlinkage void __init start_kernel(void)
proc_caches_init(); proc_caches_init();
buffer_init(); buffer_init();
unnamed_dev_init(); unnamed_dev_init();
security_scaffolding_startup(); security_init();
vfs_caches_init(num_physpages); vfs_caches_init(num_physpages);
radix_tree_init(); radix_tree_init();
signals_init(); signals_init();
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/security.h> #include <linux/security.h>
#define SECURITY_SCAFFOLD_VERSION "1.0.0" #define SECURITY_FRAMEWORK_VERSION "1.0.0"
/* things that live in dummy.c */ /* things that live in dummy.c */
extern struct security_operations dummy_security_ops; extern struct security_operations dummy_security_ops;
...@@ -49,13 +49,13 @@ static void __init do_security_initcalls(void) ...@@ -49,13 +49,13 @@ static void __init do_security_initcalls(void)
} }
/** /**
* security_scaffolding_startup - initializes the security scaffolding framework * security_init - initializes the security framework
* *
* This should be called early in the kernel initialization sequence. * This should be called early in the kernel initialization sequence.
*/ */
int __init security_scaffolding_startup (void) int __init security_init(void)
{ {
printk (KERN_INFO "Security Scaffold v" SECURITY_SCAFFOLD_VERSION printk (KERN_INFO "Security Framework v" SECURITY_FRAMEWORK_VERSION
" initialized\n"); " initialized\n");
if (verify (&dummy_security_ops)) { if (verify (&dummy_security_ops)) {
......
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