diff options
author | James Morris <jmorris@namei.org> | 2011-08-30 14:12:13 +1000 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2012-01-05 18:52:50 -0500 |
commit | 6063c0461b947c26a77674f33a3409eb99e15d2f (patch) | |
tree | 2ac98e4a0a5fa7f6da95e6c5978684da215b4277 /security/selinux | |
parent | 5c884c1d4ac955987e84acf2d36c0f160536aca4 (diff) | |
download | linux-3.10-6063c0461b947c26a77674f33a3409eb99e15d2f.tar.gz linux-3.10-6063c0461b947c26a77674f33a3409eb99e15d2f.tar.bz2 linux-3.10-6063c0461b947c26a77674f33a3409eb99e15d2f.zip |
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>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/include/security.h | 1 | ||||
-rw-r--r-- | security/selinux/selinuxfs.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index 8556e1a263c..30002c43436 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -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_ */ diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 55d92cbb177..d3677c6c12c 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -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) |