Flatcar
Flatcar copied to clipboard
[RFE] rework SELinux patches
Current situation
On Flatcar, we have SELinux patches. Some of these are quite old and could be upstreamed or purely deleted. Let's gather the feedback we had from an interesting discussion with https://wiki.gentoo.org/wiki/Project:SELinux folks:
- [x]
selinux-unconfined: no customization -> let's move it to::portage-stable: https://github.com/flatcar-linux/portage-stable/pull/314 - [ ]
icmp-bindcould be replaced withuser_ping boolean? (@krnowak if you want to try it ?) - [ ]
unlabeled.patchcould be upstreamed to refpolicy - [ ]
sshd.patchis broken (unconfined_t is not a file type so you cant put it on fcontexts) - [ ]
logging.patchseems fine, it has to use an interface (cant use kernel_t outside of kernel.te/if) could go upstream - [ ]
locallogin.patchcould go upstream - [ ] https://github.com/flatcar-linux/coreos-overlay/blob/main/sec-policy/selinux-base/files/0001-policy-ms-MCS-restricts-relabelfrom.patch could go upstream but need investigation
This is required for https://github.com/flatcar-linux/Flatcar/issues/673
Thanks a lot @perfinion for your time and your feedback :)