Commit c72c4cde authored by YueHaibing's avatar YueHaibing Committed by Paul Moore

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: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarOndrej Mosnacek <omosnace@redhat.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent e19dfdc8
...@@ -3386,8 +3386,8 @@ static int selinux_inode_copy_up_xattr(const char *name) ...@@ -3386,8 +3386,8 @@ static int selinux_inode_copy_up_xattr(const char *name)
/* kernfs node operations */ /* kernfs node operations */
int selinux_kernfs_init_security(struct kernfs_node *kn_dir, static int selinux_kernfs_init_security(struct kernfs_node *kn_dir,
struct kernfs_node *kn) struct kernfs_node *kn)
{ {
const struct task_security_struct *tsec = current_security(); const struct task_security_struct *tsec = current_security();
u32 parent_sid, newsid, clen; u32 parent_sid, newsid, clen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment