summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-22 17:04:00 +0300
committerPaul Moore <paul@paul-moore.com>2019-03-22 22:59:30 +0300
commitc72c4cde8095aa0e4336cb337dac25d6e347240d (patch)
tree68e593640d158216cdd30c2c2dae0430a2a84ae8 /security/selinux/hooks.c
parente19dfdc83b60f196e0653d683499f7bc5548128f (diff)
downloadlinux-c72c4cde8095aa0e4336cb337dac25d6e347240d.tar.xz
selinux: Make selinux_kernfs_init_security static
Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index ab4b049daf17..b6e61524d68d 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3386,8 +3386,8 @@ static int selinux_inode_copy_up_xattr(const char *name)
/* kernfs node operations */
-int selinux_kernfs_init_security(struct kernfs_node *kn_dir,
- struct kernfs_node *kn)
+static int selinux_kernfs_init_security(struct kernfs_node *kn_dir,
+ struct kernfs_node *kn)
{
const struct task_security_struct *tsec = current_security();
u32 parent_sid, newsid, clen;