diff options
author | David Disseldorp <ddiss@suse.de> | 2024-02-02 17:40:48 +1100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2024-02-02 13:53:08 -0500 |
commit | 7c655bee5cd8e060983bd89460fffc1f9f780cda (patch) | |
tree | b0539ee782798e109f4f7ee8c4886433cf98584f /security/selinux/ss | |
parent | bfda63fa2243f66e3d07cce2f38cf12d68a2ddf0 (diff) | |
download | lwn-7c655bee5cd8e060983bd89460fffc1f9f780cda.tar.gz lwn-7c655bee5cd8e060983bd89460fffc1f9f780cda.zip |
selinux: only filter copy-up xattrs following initialization
Extended attribute copy-up functionality added via 19472b69d639d
("selinux: Implementation for inode_copy_up_xattr() hook") sees
"security.selinux" contexts dropped, instead relying on contexts
applied via the inode_copy_up() hook.
When copy-up takes place during early boot, prior to selinux
initialization / policy load, the context stripping can be unwanted
and unexpected.
With this change, filtering of "security.selinux" xattrs will only occur
after selinux initialization.
Signed-off-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss')
0 files changed, 0 insertions, 0 deletions