Commit 02f5daa563456c1ff3c3422aa3ec00e67460f762
Committed by
Eric Paris
1 parent
e8a65a3f67
Exists in
master
and in
6 other branches
selinux: sparse fix: fix warnings in netlink code
Fix sparse warnings in SELinux Netlink code. Signed-off-by: James Morris <jmorris@namei.org> Signed-off-by: Eric Paris <eparis@redhat.com>
Showing 6 changed files with 6 additions and 5 deletions Side-by-side Diff
security/selinux/hooks.c
security/selinux/include/security.h
... | ... | @@ -221,6 +221,9 @@ |
221 | 221 | extern void exit_sel_fs(void); |
222 | 222 | extern struct dentry *selinux_null; |
223 | 223 | extern struct vfsmount *selinuxfs_mount; |
224 | +extern void selnl_notify_setenforce(int val); | |
225 | +extern void selnl_notify_policyload(u32 seqno); | |
226 | +extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm); | |
224 | 227 | |
225 | 228 | #endif /* _SELINUX_SECURITY_H_ */ |
security/selinux/netlink.c
security/selinux/nlmsgtab.c
security/selinux/selinuxfs.c
... | ... | @@ -75,8 +75,6 @@ |
75 | 75 | /* global data for policy capabilities */ |
76 | 76 | static struct dentry *policycap_dir; |
77 | 77 | |
78 | -extern void selnl_notify_setenforce(int val); | |
79 | - | |
80 | 78 | /* Check whether a task is allowed to use a security operation. */ |
81 | 79 | static int task_has_security(struct task_struct *tsk, |
82 | 80 | u32 perms) |