mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
Merge pull request #1426 from flatcar-linux/tormath1/selinux
sec-policy/selinux-base-policy: add capability to unlabeled_t
This commit is contained in:
commit
46edd14fad
@ -0,0 +1,11 @@
|
||||
index 7c60eda2c..736187b7a 100644
|
||||
--- refpolicy/policy/modules/kernel/kernel.te
|
||||
+++ refpolicy/policy/modules/kernel/kernel.te
|
||||
@@ -191,6 +191,7 @@ genfscon proc /sys/dev gen_context(system_u:object_r:sysctl_dev_t,s0)
|
||||
type unlabeled_t;
|
||||
kernel_rootfs_mountpoint(unlabeled_t)
|
||||
fs_associate(unlabeled_t)
|
||||
+fs_associate_tmpfs(unlabeled_t)
|
||||
sid file gen_context(system_u:object_r:unlabeled_t,s0)
|
||||
sid unlabeled gen_context(system_u:object_r:unlabeled_t,mls_systemhigh)
|
||||
neverallow * unlabeled_t:file entrypoint;
|
@ -39,6 +39,10 @@ PATCHES=(
|
||||
"${FILESDIR}/init.patch"
|
||||
"${FILESDIR}/locallogin.patch"
|
||||
"${FILESDIR}/logging.patch"
|
||||
# this patch is required to prevent `torcx-generator`
|
||||
# to fail if SELinux is enforced in early boot.
|
||||
# It can be removed once we drop torcx support.
|
||||
"${FILESDIR}/unlabeled.patch"
|
||||
)
|
||||
|
||||
# Code entirely copied from selinux-eclass (cannot inherit due to dependency on
|
||||
|
Loading…
Reference in New Issue
Block a user