Skip to content

Commit

Permalink
selinux: sparse fix: declare selinux_disable() in security.h
Browse files Browse the repository at this point in the history
Sparse fix: declare selinux_disable() in security.h

Signed-off-by: James Morris <[email protected]>
  • Loading branch information
James Morris committed Sep 9, 2011
1 parent cc59a58 commit 58982b7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions security/selinux/include/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

1 change: 0 additions & 1 deletion security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 58982b7

Please sign in to comment.