selinux: sparse fix: move selinux_complete_init
authorJames Morris <jmorris@namei.org>
Tue, 30 Aug 2011 04:16:24 +0000 (14:16 +1000)
committerEric Paris <eparis@redhat.com>
Thu, 5 Jan 2012 23:52:49 +0000 (18:52 -0500)
Sparse fix: move selinux_complete_init

Signed-off-by: James Morris <jmorris@namei.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/include/security.h
security/selinux/ss/services.c

index 3ba4feba048a0158230620b83ca91d29c2e8ff26..8556e1a263c25506e996a7ee03d0efb8b6f248f0 100644 (file)
@@ -216,6 +216,7 @@ struct selinux_kernel_status {
 
 extern void selinux_status_update_setenforce(int enforcing);
 extern void selinux_status_update_policyload(int seqno);
+extern void selinux_complete_init(void);
 
 #endif /* _SELINUX_SECURITY_H_ */
 
index f6917bc0aa05322716d8fd5a4e0a46effd3be45c..37c50c602f177a78637da25dfb86b0b5274677fb 100644 (file)
@@ -1790,7 +1790,6 @@ static void security_load_policycaps(void)
                                                  POLICYDB_CAPABILITY_OPENPERM);
 }
 
-extern void selinux_complete_init(void);
 static int security_preserve_bools(struct policydb *p);
 
 /**