Commit 7c655be
selinux: only filter copy-up xattrs following initialization
Extended attribute copy-up functionality added via 19472b6
("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 <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent bfda63f commit 7c655be
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3533 | 3533 | | |
3534 | 3534 | | |
3535 | 3535 | | |
3536 | | - | |
| 3536 | + | |
| 3537 | + | |
3537 | 3538 | | |
3538 | | - | |
| 3539 | + | |
3539 | 3540 | | |
3540 | 3541 | | |
3541 | 3542 | | |
| |||
0 commit comments