]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: implement the kernfs_init_security hook
authorOndrej Mosnacek <omosnace@redhat.com>
Fri, 22 Feb 2019 14:57:17 +0000 (15:57 +0100)
committerPaul Moore <paul@paul-moore.com>
Thu, 21 Mar 2019 02:07:45 +0000 (22:07 -0400)
commit7bff569ab339a2771d50b32d1ab225b1d14f36a3
treeb7a09e2138b42635095aa4c43022fd53d526ab77
parentf10163f7302c4d987539db8a074fccc0aaf26f50
selinux: implement the kernfs_init_security hook

The hook applies the same logic as selinux_determine_inode_label(), with
the exception of the super_block handling, which will be enforced on the
actual inodes later by other hooks.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
[PM: minor merge fixes]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c