selinux: sparse fix: declare selinux_disable() in security.h
authorJames Morris <jmorris@namei.org>
Tue, 30 Aug 2011 04:12:13 +0000 (14:12 +1000)
committerEric Paris <eparis@redhat.com>
Thu, 5 Jan 2012 23:52:50 +0000 (18:52 -0500)
Sparse fix: declare selinux_disable() in security.h

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

index 8556e1a263c25506e996a7ee03d0efb8b6f248f0..30002c43436f374110557815b2d547156c5c7b5f 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 55d92cbb177acaf31a7b84282cf8d56b0c71fbe5..d3677c6c12c63450db101a3db6909ed0298c60eb 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)