Skip to content

Commit 05e0339

Browse files
committed
overlay coreos/user-patches: Update patch for selinux policies
Signed-off-by: Krzesimir Nowak <[email protected]>
1 parent 13a8180 commit 05e0339

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/0001-Flatcar-modifications.patch

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 9398464fe4d29cb3e9ad3c04c2c749747438fb65 Mon Sep 17 00:00:00 2001
1+
From 776730b89903c93a405dcfec2dbda27e012f99df Mon Sep 17 00:00:00 2001
22
From: Krzesimir Nowak <[email protected]>
33
Date: Mon, 4 Dec 2023 12:17:25 +0100
44
Subject: [PATCH] Flatcar modifications
@@ -14,7 +14,8 @@ Subject: [PATCH] Flatcar modifications
1414
policy/modules/system/init.te | 8 ++
1515
policy/modules/system/locallogin.te | 9 +-
1616
policy/modules/system/logging.te | 9 ++
17-
10 files changed, 427 insertions(+), 3 deletions(-)
17+
policy/modules/system/systemd.fc | 12 ++
18+
11 files changed, 439 insertions(+), 3 deletions(-)
1819

1920
diff --git a/refpolicy/policy/modules/admin/netutils.te b/refpolicy/policy/modules/admin/netutils.te
2021
index 63d2f9cb8..62dff5f94 100644
@@ -568,6 +569,29 @@ index 14d3132be..ce40abc52 100644
568569
allow syslogd_t self:capability audit_control;
569570
allow syslogd_t self:netlink_audit_socket connected_socket_perms;
570571
allow syslogd_t self:capability2 audit_read;
572+
diff --git a/refpolicy/policy/modules/system/systemd.fc b/refpolicy/policy/modules/system/systemd.fc
573+
index c648266c1..e19e1d07a 100644
574+
--- a/refpolicy/policy/modules/system/systemd.fc
575+
+++ b/refpolicy/policy/modules/system/systemd.fc
576+
@@ -123,6 +123,18 @@ HOME_ROOT/.+\.home -- gen_context(system_u:object_r:systemd_homed_storage_t,s0)
577+
/run/systemd/seats(/.*)? gen_context(system_u:object_r:systemd_sessions_runtime_t,s0)
578+
/run/systemd/sessions(/.*)? gen_context(system_u:object_r:systemd_sessions_runtime_t,s0)
579+
/run/systemd/shutdown(/.*)? gen_context(system_u:object_r:systemd_logind_runtime_t,s0)
580+
+#
581+
+# FLATCAR:
582+
+#
583+
+# This is to fix a label of a merged filesystem.
584+
+#
585+
+/run/systemd/sysext/meta/usr -d gen_context(system_u:object_r:usr_t,s0)
586+
+/run/systemd/sysext/meta/opt -d gen_context(system_u:object_r:usr_t,s0)
587+
+/run/systemd/sysext/usr -d gen_context(system_u:object_r:usr_t,s0)
588+
+/run/systemd/sysext/opt -d gen_context(system_u:object_r:usr_t,s0)
589+
+/var/lib/extensions.mutable/usr -d gen_context(system_u:object_r:usr_t,s0)
590+
+/var/lib/extensions.mutable/opt -d gen_context(system_u:object_r:usr_t,s0)
591+
+
592+
/run/systemd/users(/.*)? gen_context(system_u:object_r:systemd_logind_runtime_t,s0)
593+
/run/systemd/userdb(/.*)? gen_context(system_u:object_r:systemd_userdbd_runtime_t,s0)
594+
/run/systemd/inhibit(/.*)? gen_context(system_u:object_r:systemd_logind_inhibit_runtime_t,s0)
571595
--
572596
2.49.1
573597

0 commit comments

Comments
 (0)