selinux: sparse fix: declare selinux_disable() in security.h

Sparse fix: declare selinux_disable() in security.h

Signed-off-by: James Morris <jmorris@namei.org>
This commit is contained in:
James Morris 2011-08-17 11:17:14 +10:00
parent cc59a582d6
commit 58982b7483
2 changed files with 1 additions and 1 deletions

View file

@ -217,6 +217,7 @@ struct selinux_kernel_status {
extern void selinux_status_update_setenforce(int enforcing); extern void selinux_status_update_setenforce(int enforcing);
extern void selinux_status_update_policyload(int seqno); extern void selinux_status_update_policyload(int seqno);
extern void selinux_complete_init(void); extern void selinux_complete_init(void);
extern int selinux_disable(void);
#endif /* _SELINUX_SECURITY_H_ */ #endif /* _SELINUX_SECURITY_H_ */

View file

@ -278,7 +278,6 @@ static ssize_t sel_write_disable(struct file *file, const char __user *buf,
char *page = NULL; char *page = NULL;
ssize_t length; ssize_t length;
int new_value; int new_value;
extern int selinux_disable(void);
length = -ENOMEM; length = -ENOMEM;
if (count >= PAGE_SIZE) if (count >= PAGE_SIZE)