summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-22 15:04:00 +0100
committerPaul Moore <paul@paul-moore.com>2019-03-22 20:59:30 +0100
commitc72c4cde8095aa0e4336cb337dac25d6e347240d (patch)
tree68e593640d158216cdd30c2c2dae0430a2a84ae8
parentkernfs: initialize security of newly created nodes (diff)
downloadlinux-c72c4cde8095aa0e4336cb337dac25d6e347240d.tar.xz
linux-c72c4cde8095aa0e4336cb337dac25d6e347240d.zip
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>
-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;