diff options
author | James Morris <jmorris@namei.org> | 2011-08-29 20:50:12 -0400 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2011-09-09 19:56:30 -0400 |
commit | ad3fa08c4ff84ed87649d72e8497735c85561a3d (patch) | |
tree | e6f22e6d42cf52c689e983be42b9292180564446 /security/selinux/hooks.c | |
parent | d5813a571876c72766f125b1c6e63414f6822c28 (diff) |
selinux: sparse fix: eliminate warnings for selinuxfs
Fixes several sparse warnings for selinuxfs.c
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index e07cf7fcdce2..4a176b468719 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2097,9 +2097,6 @@ static int selinux_bprm_secureexec(struct linux_binprm *bprm) | |||
2097 | return (atsecure || cap_bprm_secureexec(bprm)); | 2097 | return (atsecure || cap_bprm_secureexec(bprm)); |
2098 | } | 2098 | } |
2099 | 2099 | ||
2100 | extern struct vfsmount *selinuxfs_mount; | ||
2101 | extern struct dentry *selinux_null; | ||
2102 | |||
2103 | /* Derived from fs/exec.c:flush_old_files. */ | 2100 | /* Derived from fs/exec.c:flush_old_files. */ |
2104 | static inline void flush_unauthorized_files(const struct cred *cred, | 2101 | static inline void flush_unauthorized_files(const struct cred *cred, |
2105 | struct files_struct *files) | 2102 | struct files_struct *files) |
@@ -5803,8 +5800,6 @@ static int selinux_disabled; | |||
5803 | 5800 | ||
5804 | int selinux_disable(void) | 5801 | int selinux_disable(void) |
5805 | { | 5802 | { |
5806 | extern void exit_sel_fs(void); | ||
5807 | |||
5808 | if (ss_initialized) { | 5803 | if (ss_initialized) { |
5809 | /* Not permitted after initial policy load. */ | 5804 | /* Not permitted after initial policy load. */ |
5810 | return -EINVAL; | 5805 | return -EINVAL; |