kernel_optimize_test/security/selinux/include
Ondrej Mosnacek b754026bd9 selinux: try security xattr after genfs for kernfs filesystems
Since kernfs supports the security xattr handlers, we can simply use
these to determine the inode's context, dropping the need to update it
from kernfs explicitly using a security_inode_notifysecctx() call.

We achieve this by setting a new sbsec flag SE_SBGENFS_XATTR to all
mounts that are known to use kernfs under the hood and then fetching the
xattrs after determining the fallback genfs sid in
inode_doinit_with_dentry() when this flag is set.

This will allow implementing full security xattr support in kernfs and
removing the ...notifysecctx() call in a subsequent patch.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
[PM: more manual merge fixups]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2019-03-20 21:53:04 -04:00
..
audit.h audit/stable-5.1 PR 20190305 2019-03-07 12:20:11 -08:00
avc_ss.h selinux: wrap AVC state 2018-03-20 16:58:17 -04:00
avc.h selinux: stop passing MAY_NOT_BLOCK to the AVC upon follow_link 2019-01-10 20:34:37 -05:00
classmap.h selinux: use kernel linux/socket.h for genheaders and mdp 2019-03-18 18:52:10 -04:00
conditional.h selinux: wrap global selinux state 2018-03-01 18:48:02 -05:00
ibpkey.h selinux: Add a cache for quicker retreival of PKey SIDs 2017-05-23 12:28:12 -04:00
initial_sid_to_string.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
netif.h selinux: make the netif cache namespace aware 2014-09-10 17:09:57 -04:00
netlabel.h selinux: fix typo in selinux_netlbl_sctp_sk_clone declaration 2018-02-26 17:45:32 -05:00
netnode.h selinux: reduce the number of calls to synchronize_net() when flushing caches 2014-06-26 14:33:56 -04:00
netport.h selinux: reduce the number of calls to synchronize_net() when flushing caches 2014-06-26 14:33:56 -04:00
objsec.h LSM: Infrastructure management of the ipc security blob 2019-01-08 13:18:45 -08:00
security.h selinux: try security xattr after genfs for kernfs filesystems 2019-03-20 21:53:04 -04:00
xfrm.h security: Remove rtnl_lock() in selinux_xfrm_notify_policyload() 2018-03-29 13:47:53 -04:00