selinux: sparse fix: declare selinux_disable() in security.h
authorJames Morris <jmorris@namei.org>
Wed, 17 Aug 2011 01:17:14 +0000 (11:17 +1000)
committerJames Morris <jmorris@namei.org>
Fri, 9 Sep 2011 23:56:26 +0000 (16:56 -0700)
Sparse fix: declare selinux_disable() in security.h

Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/include/security.h
security/selinux/selinuxfs.c

index 8556e1a..30002c4 100644 (file)
@@ -217,6 +217,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);
+extern int selinux_disable(void);
 
 #endif /* _SELINUX_SECURITY_H_ */
 
index 55d92cb..d3677c6 100644 (file)
@@ -278,7 +278,6 @@ static ssize_t sel_write_disable(struct file *file, const char __user *buf,
        char *page = NULL;
        ssize_t length;
        int new_value;
-       extern int selinux_disable(void);
 
        length = -ENOMEM;
        if (count >= PAGE_SIZE)