mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-04 16:10:05 +00:00
refpolicy: upgrade 20221101+git -> 20231002+git
* Switch branch to main. * Update to latest git rev. * Drop obsolete and useless patches. * Refresh patches. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Joe MacDonald <joe@deserted.net>
This commit is contained in:
parent
e44d4ff853
commit
0d58268e29
|
|
@ -1,4 +1,4 @@
|
|||
From ee66387c393af77b88c833f5d271efe48036112c Mon Sep 17 00:00:00 2001
|
||||
From 1d96fd0c6906566d40cb4c4f2c8a30fe80ed4ad4 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 28 Mar 2019 16:14:09 -0400
|
||||
Subject: [PATCH] fc/subs/volatile: alias common /var/volatile paths
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 0e3b79ae0ae468640d7092c9a91a91d258d07645 Mon Sep 17 00:00:00 2001
|
||||
From 6c5f86f8c5e5fda6ded270753d0535a31ebfbab0 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 5 Apr 2019 11:53:28 -0400
|
||||
Subject: [PATCH] refpolicy-minimum: make sysadmin module optional
|
||||
|
|
@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
2 files changed, 11 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
|
||||
index 671b5aef3..8ce3d5956 100644
|
||||
index e94a29a73..6b1879bb4 100644
|
||||
--- a/policy/modules/system/init.te
|
||||
+++ b/policy/modules/system/init.te
|
||||
@@ -615,13 +615,15 @@ ifdef(`init_systemd',`
|
||||
@@ -638,13 +638,15 @@ ifdef(`init_systemd',`
|
||||
unconfined_write_keys(init_t)
|
||||
')
|
||||
',`
|
||||
|
|
@ -48,10 +48,10 @@ index 671b5aef3..8ce3d5956 100644
|
|||
')
|
||||
')
|
||||
diff --git a/policy/modules/system/locallogin.te b/policy/modules/system/locallogin.te
|
||||
index 7728de804..a8ff403dd 100644
|
||||
index 8330be8a9..933e94b24 100644
|
||||
--- a/policy/modules/system/locallogin.te
|
||||
+++ b/policy/modules/system/locallogin.te
|
||||
@@ -274,7 +274,9 @@ userdom_use_unpriv_users_fds(sulogin_t)
|
||||
@@ -277,7 +277,9 @@ userdom_use_unpriv_users_fds(sulogin_t)
|
||||
userdom_search_user_home_dirs(sulogin_t)
|
||||
userdom_use_user_ptys(sulogin_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 60b4e5ea5668a71b2a0660461daecea66fd11d51 Mon Sep 17 00:00:00 2001
|
||||
From c26f856ac11b3d61aff56c4e512bedca811cf004 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Mon, 20 Apr 2020 11:50:03 +0800
|
||||
Subject: [PATCH] refpolicy-targeted: make unconfined_u the default selinux
|
||||
|
|
@ -38,7 +38,7 @@ index ce614b41b..c0903d98b 100644
|
|||
+root:unconfined_u:s0-mcs_systemhigh
|
||||
+__default__:unconfined_u:s0
|
||||
diff --git a/policy/modules/system/unconfined.te b/policy/modules/system/unconfined.te
|
||||
index d116a1b9b..32720f68f 100644
|
||||
index 6431d35da..922e7e285 100644
|
||||
--- a/policy/modules/system/unconfined.te
|
||||
+++ b/policy/modules/system/unconfined.te
|
||||
@@ -20,6 +20,11 @@ type unconfined_execmem_t alias ada_t;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 8fa6c5b7b99a50b09e9dffd142c066fa41319750 Mon Sep 17 00:00:00 2001
|
||||
From c94348cbaacfdc47a50cc93c8d52295f09b3c1f2 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 28 Mar 2019 20:48:10 -0400
|
||||
Subject: [PATCH] fc/subs/busybox: set aliases for bin, sbin and usr
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 9a8d6b634d4f714fc63125be5e23228c565d1aaf Mon Sep 17 00:00:00 2001
|
||||
From c69e55b03777ee15701ebb9b53b288fc773dbd87 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Wed, 29 Sep 2021 11:08:49 +0800
|
||||
Subject: [PATCH] refpolicy-minimum: make xdg module optional
|
||||
|
|
@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 6 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index 7b717d3ba..3b07b368d 100644
|
||||
index 52c7b5346..d9f21b6bf 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -298,10 +298,14 @@ init_unit_file(systemd_user_manager_unit_t)
|
||||
@@ -305,10 +305,14 @@ init_unit_file(systemd_user_manager_unit_t)
|
||||
|
||||
type systemd_conf_home_t;
|
||||
init_unit_file(systemd_conf_home_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 5a0bbd1920205f488b6a4565f7217b9d0825067b Mon Sep 17 00:00:00 2001
|
||||
From cb1c9ffb1c8f2c615731c2afae81b687a59b94c4 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] fc/hostname: apply policy to common yocto hostname
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From c9219d2f7be1e641b3866b770a9b570c12333b93 Mon Sep 17 00:00:00 2001
|
||||
From 23f156d0adc37eb9f6f8308c28da4db0bac48200 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 28 Mar 2019 21:37:32 -0400
|
||||
Subject: [PATCH] fc/bash: apply /usr/bin/bash context to /bin/bash.bash
|
||||
|
|
@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
|
||||
index 0c05c693d..b70940928 100644
|
||||
index f031e1704..30ac066e4 100644
|
||||
--- a/policy/modules/kernel/corecommands.fc
|
||||
+++ b/policy/modules/kernel/corecommands.fc
|
||||
@@ -142,6 +142,7 @@ ifdef(`distro_gentoo',`
|
||||
@@ -144,6 +144,7 @@ ifdef(`distro_gentoo',`
|
||||
/usr/bin(/.*)? gen_context(system_u:object_r:bin_t,s0)
|
||||
/usr/bin/d?ash -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
/usr/bin/bash -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 51631a7eaaea1fab4b36a2488497cf725317ce6e Mon Sep 17 00:00:00 2001
|
||||
From 10df3192847b50162c7f404b6c5bd1a010951112 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 4 Apr 2019 10:45:03 -0400
|
||||
Subject: [PATCH] fc/resolv.conf: label resolv.conf in var/run/ properly
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 1c61b10d21a22d4110bc880b23477295f6cd9efb Mon Sep 17 00:00:00 2001
|
||||
From 61900d0f5576fa0cd8297a011f60cb9a40cefc7b Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 28 Mar 2019 21:43:53 -0400
|
||||
Subject: [PATCH] fc/login: apply login context to login.shadow
|
||||
|
|
@ -12,11 +12,11 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/system/authlogin.fc b/policy/modules/system/authlogin.fc
|
||||
index 50efcff7b..5cb48882c 100644
|
||||
index adb53a05a..a25a9d607 100644
|
||||
--- a/policy/modules/system/authlogin.fc
|
||||
+++ b/policy/modules/system/authlogin.fc
|
||||
@@ -6,6 +6,7 @@
|
||||
/etc/tcb(/.*)? -- gen_context(system_u:object_r:shadow_t,s0)
|
||||
@@ -8,6 +8,7 @@
|
||||
/etc/security/opasswd\.old -- gen_context(system_u:object_r:shadow_history_t,s0)
|
||||
|
||||
/usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0)
|
||||
+/usr/bin/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From e4d7d9fb1cb157bf205874e1a81d5719017866a1 Mon Sep 17 00:00:00 2001
|
||||
From e393201b6f3c0242ccc41dd86eada8be97326a08 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Thu, 28 Mar 2019 21:59:18 -0400
|
||||
Subject: [PATCH] fc/hwclock: add hwclock alternatives
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From ac6536f04674ccc051744e6eb3644e68fe38da33 Mon Sep 17 00:00:00 2001
|
||||
From 2d5ca79ed3f775878b91d76e952644b1347d5f9e Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 29 Mar 2019 08:26:55 -0400
|
||||
Subject: [PATCH] fc/dmesg: apply policy to dmesg alternatives
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From a56887ca448b60ad6715348b2cfe533e8109a040 Mon Sep 17 00:00:00 2001
|
||||
From d676349ee55f8c1c16b9d5c6770b9137391d396e Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 29 Mar 2019 09:20:58 -0400
|
||||
Subject: [PATCH] fc/ssh: apply policy to ssh alternatives
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 47a5e9a0bd4960534998798ab1a5ab62e77b2b61 Mon Sep 17 00:00:00 2001
|
||||
From 6730f53849cce4d2586a6e6540f3e7aae1117236 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Tue, 9 Jun 2015 21:22:52 +0530
|
||||
Subject: [PATCH] fc/sysnetwork: apply policy to network commands alternatives
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 00533fded8e2264f8bdc68c8ed79644a10e4e2ad Mon Sep 17 00:00:00 2001
|
||||
From cfb5cec05c98a65d8eb086868444a6e74e1f96bf Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 29 Mar 2019 09:54:07 -0400
|
||||
Subject: [PATCH] fc/rpm: apply rpm_exec policy to cpio binaries
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
From bbc6eb20e9509a61236051df7a5fa552a8f2654d Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 29 Mar 2019 09:36:08 -0400
|
||||
Subject: [PATCH] fc/udev: apply policy to udevadm in libexec
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/udev.fc | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/udev.fc b/policy/modules/system/udev.fc
|
||||
index 7898ff01c..bc717e60c 100644
|
||||
--- a/policy/modules/system/udev.fc
|
||||
+++ b/policy/modules/system/udev.fc
|
||||
@@ -24,6 +24,8 @@ ifdef(`distro_debian',`
|
||||
/usr/sbin/udevstart -- gen_context(system_u:object_r:udev_exec_t,s0)
|
||||
/usr/sbin/wait_for_sysfs -- gen_context(system_u:object_r:udev_exec_t,s0)
|
||||
|
||||
+/usr/libexec/udevadm -- gen_context(system_u:object_r:udevadm_exec_t,s0)
|
||||
+
|
||||
ifdef(`distro_redhat',`
|
||||
/usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0)
|
||||
')
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 4b202554e646a60000c1acad7bbdfae1078bdc10 Mon Sep 17 00:00:00 2001
|
||||
From dd1663aaffec1f7b36097c742094c9c239342d9f Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Thu, 13 Feb 2014 00:33:07 -0500
|
||||
Subject: [PATCH] fc/su: apply policy to su alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From f64a5d6a2f2e72ae6c5122220eb759117b6384c8 Mon Sep 17 00:00:00 2001
|
||||
From 9cd6000d7d01cee2eb92038bf4361f603736200b Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Mon, 27 Jan 2014 03:54:01 -0500
|
||||
Subject: [PATCH] fc/fstools: fix real path for fstools
|
||||
|
|
@ -10,11 +10,11 @@ Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
|
|||
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/fstools.fc | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
policy/modules/system/fstools.fc | 10 ++++++++++
|
||||
1 file changed, 10 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/fstools.fc b/policy/modules/system/fstools.fc
|
||||
index 8fbd5ce44..2842afbcc 100644
|
||||
index 63423802d..124109a68 100644
|
||||
--- a/policy/modules/system/fstools.fc
|
||||
+++ b/policy/modules/system/fstools.fc
|
||||
@@ -58,7 +58,9 @@
|
||||
|
|
@ -41,7 +41,7 @@ index 8fbd5ce44..2842afbcc 100644
|
|||
/usr/sbin/install-mbr -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/jfs_.* -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/losetup.* -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
@@ -83,24 +88,30 @@
|
||||
@@ -83,13 +88,16 @@
|
||||
/usr/sbin/make_reiser4 -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/mkdosfs -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/mke2fs -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
|
|
@ -58,10 +58,7 @@ index 8fbd5ce44..2842afbcc 100644
|
|||
/usr/sbin/partx -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/raidautorun -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/raidstart -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
+/usr/sbin/raw -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/reiserfs(ck|tune) -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/resize.*fs -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/scsi_info -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
@@ -99,8 +107,10 @@
|
||||
/usr/sbin/sfdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/smartctl -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
/usr/sbin/swapoff -- gen_context(system_u:object_r:fsadm_exec_t,s0)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 6d2a96abd1e292d0c34ff77501e618cfc193655f Mon Sep 17 00:00:00 2001
|
||||
From 4c6db6e9d637c6ecde7d104ae3544d18004d2a2c Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] fc/init: fix update-alternatives for sysvinit
|
||||
|
|
@ -15,21 +15,21 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
3 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/admin/shutdown.fc b/policy/modules/admin/shutdown.fc
|
||||
index bf51c103f..91ed72be0 100644
|
||||
index 89d682d36..354f4d1d9 100644
|
||||
--- a/policy/modules/admin/shutdown.fc
|
||||
+++ b/policy/modules/admin/shutdown.fc
|
||||
@@ -5,5 +5,6 @@
|
||||
/usr/lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
|
||||
@@ -7,5 +7,6 @@
|
||||
|
||||
/usr/sbin/halt -- gen_context(system_u:object_r:shutdown_exec_t,s0)
|
||||
/usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
|
||||
+/usr/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0)
|
||||
|
||||
/run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_runtime_t,s0)
|
||||
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
|
||||
index b70940928..e6077fd5b 100644
|
||||
index 30ac066e4..1edc035f3 100644
|
||||
--- a/policy/modules/kernel/corecommands.fc
|
||||
+++ b/policy/modules/kernel/corecommands.fc
|
||||
@@ -151,6 +151,8 @@ ifdef(`distro_gentoo',`
|
||||
@@ -153,6 +153,8 @@ ifdef(`distro_gentoo',`
|
||||
/usr/bin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0)
|
||||
/usr/bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
/usr/bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0)
|
||||
|
|
@ -39,10 +39,10 @@ index b70940928..e6077fd5b 100644
|
|||
/usr/bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
/usr/bin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc
|
||||
index 1a99e5824..7f0b7c699 100644
|
||||
index 9ebd6094c..e9e9eae85 100644
|
||||
--- a/policy/modules/system/init.fc
|
||||
+++ b/policy/modules/system/init.fc
|
||||
@@ -41,6 +41,7 @@ ifdef(`distro_gentoo',`
|
||||
@@ -48,6 +48,7 @@ ifdef(`distro_gentoo',`
|
||||
/usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0)
|
||||
|
||||
/usr/sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 2e9c22ee83b7d4fea7b177ca8111c06e69338db9 Mon Sep 17 00:00:00 2001
|
||||
From e95592bb4138b7bbf3e7725144ac2cbe9cecc4cd Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 10:19:54 +0800
|
||||
Subject: [PATCH] fc/brctl: apply policy to brctl alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From c43f2d7ddf1d0c2185796e0297dd9f85b9663aaf Mon Sep 17 00:00:00 2001
|
||||
From 788d2c125f18dce9e0871fb260b4a0c394b9db53 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 10:21:51 +0800
|
||||
Subject: [PATCH] fc/corecommands: apply policy to nologin alternatives
|
||||
|
|
@ -11,10 +11,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc
|
||||
index e6077fd5b..0df59e837 100644
|
||||
index 1edc035f3..258d97c3c 100644
|
||||
--- a/policy/modules/kernel/corecommands.fc
|
||||
+++ b/policy/modules/kernel/corecommands.fc
|
||||
@@ -306,6 +306,8 @@ ifdef(`distro_debian',`
|
||||
@@ -308,6 +308,8 @@ ifdef(`distro_debian',`
|
||||
/usr/sbin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0)
|
||||
/usr/sbin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0)
|
||||
/usr/sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 11c95928e325aea7e4c41a9cdf969f9bdd306611 Mon Sep 17 00:00:00 2001
|
||||
From 03199ca4933ef2760c0e575a76e90521117ea4c3 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 10:43:28 +0800
|
||||
Subject: [PATCH] fc/locallogin: apply policy to sulogin alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 5841a5bd25e6017b6ccff4f56628ad6e950eadad Mon Sep 17 00:00:00 2001
|
||||
From ee9c65a2d3db145309bd2898223f8229915c304c Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 10:45:23 +0800
|
||||
Subject: [PATCH] fc/ntp: apply policy to ntpd alternatives
|
||||
|
|
@ -11,7 +11,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/services/ntp.fc b/policy/modules/services/ntp.fc
|
||||
index cd69ea5d5..49ffe6f68 100644
|
||||
index 9243f3304..e13cf6a9b 100644
|
||||
--- a/policy/modules/services/ntp.fc
|
||||
+++ b/policy/modules/services/ntp.fc
|
||||
@@ -25,6 +25,7 @@
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 8126ec521e5a0f72da098f5d90b5b5b392006b7c Mon Sep 17 00:00:00 2001
|
||||
From 435ae64d593cc09b1109d0457f7ba084259090e8 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 10:55:05 +0800
|
||||
Subject: [PATCH] fc/kerberos: apply policy to kerberos alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From c71ea08245069001b56aadd7bb0af28e019f45e4 Mon Sep 17 00:00:00 2001
|
||||
From a1c0776ac6405d1b6aeadf07cc222f5cc9daa424 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 11:06:13 +0800
|
||||
Subject: [PATCH] fc/ldap: apply policy to ldap alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 72726c1bc51628e6eb56e758f1e334f9b9a0f17e Mon Sep 17 00:00:00 2001
|
||||
From dd6dc74388daffba5c336059fbc046e632bee0f6 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 11:13:16 +0800
|
||||
Subject: [PATCH] fc/postgresql: apply policy to postgresql alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 003a22f73563ef7b8b4ab6a6a0cb4a920a43570f Mon Sep 17 00:00:00 2001
|
||||
From 7d78632d5553fcddf12dd57de56ff15b057625ab Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 11:15:33 +0800
|
||||
Subject: [PATCH] fc/screen: apply policy to screen alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From fdf7c2d27b6ecf08c88bb98e52a7d8284ac828af Mon Sep 17 00:00:00 2001
|
||||
From 074eff7d27765a1f489f3a787d7f6f64a890f07e Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 11:25:34 +0800
|
||||
Subject: [PATCH] fc/usermanage: apply policy to usermanage alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 863ece4fd9815997486c04ce89180707435669e4 Mon Sep 17 00:00:00 2001
|
||||
From dca38e304bb64a5c3a18d02521f56ffe461ec126 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 15 Nov 2019 16:07:30 +0800
|
||||
Subject: [PATCH] fc/getty: add file context to start_getty
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 5bb33b7d9d7915399cca7d8c6fbdd9c0e27c1cd8 Mon Sep 17 00:00:00 2001
|
||||
From ae142b7d993a7f03b6ff1cf4f7a49c3aec77fe1c Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Wed, 18 Dec 2019 15:04:41 +0800
|
||||
Subject: [PATCH] fc/vlock: apply policy to vlock alternatives
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 574df1810c8f32bbf24b223f72f6622b0df7e82c Mon Sep 17 00:00:00 2001
|
||||
From 1096b2eb1172506006691e90769e51a086b8374f Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Tue, 30 Jun 2020 10:45:57 +0800
|
||||
Subject: [PATCH] fc: add fcontext for init scripts and systemd service files
|
||||
|
|
@ -48,7 +48,7 @@ index 75c2f0617..fa881ba2e 100644
|
|||
|
||||
/usr/bin/nfsdcld -- gen_context(system_u:object_r:rpcd_exec_t,s0)
|
||||
diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc
|
||||
index 5681acb51..4ff5f990a 100644
|
||||
index 3b0dea51b..0ce2bec4b 100644
|
||||
--- a/policy/modules/system/logging.fc
|
||||
+++ b/policy/modules/system/logging.fc
|
||||
@@ -24,6 +24,7 @@
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 01f57c996e09fb68daf3d97805c46c27a6d34304 Mon Sep 17 00:00:00 2001
|
||||
From 153bdbda047a3e769983000b4c8263eb4bfd2031 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Sun, 5 Apr 2020 22:03:45 +0800
|
||||
Subject: [PATCH] file_contexts.subs_dist: set aliase for /root directory
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 2e9b42143ccb92f04d8d57430b3ae1e9f55eb00e Mon Sep 17 00:00:00 2001
|
||||
From f08f3c554d70c9cd11f0297678bb4a29b8ab034b Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] policy/modules/system/logging: add rules for the symlink of
|
||||
|
|
@ -14,11 +14,11 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
|
|||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/logging.fc | 1 +
|
||||
policy/modules/system/logging.if | 9 +++++++++
|
||||
2 files changed, 10 insertions(+)
|
||||
policy/modules/system/logging.if | 7 +++++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.fc b/policy/modules/system/logging.fc
|
||||
index 4ff5f990a..dee26a9f4 100644
|
||||
index 0ce2bec4b..8957366b0 100644
|
||||
--- a/policy/modules/system/logging.fc
|
||||
+++ b/policy/modules/system/logging.fc
|
||||
@@ -53,6 +53,7 @@ ifdef(`distro_suse', `
|
||||
|
|
@ -30,10 +30,10 @@ index 4ff5f990a..dee26a9f4 100644
|
|||
/var/log/dmesg -- gen_context(system_u:object_r:var_log_t,s0)
|
||||
/var/log/syslog -- gen_context(system_u:object_r:var_log_t,s0)
|
||||
diff --git a/policy/modules/system/logging.if b/policy/modules/system/logging.if
|
||||
index cf7ef1721..b627cacb8 100644
|
||||
index 49028a0cb..4381d2e83 100644
|
||||
--- a/policy/modules/system/logging.if
|
||||
+++ b/policy/modules/system/logging.if
|
||||
@@ -1086,10 +1086,12 @@ interface(`logging_append_all_inherited_logs',`
|
||||
@@ -1091,10 +1091,12 @@ interface(`logging_append_all_inherited_logs',`
|
||||
interface(`logging_read_all_logs',`
|
||||
gen_require(`
|
||||
attribute logfile;
|
||||
|
|
@ -46,20 +46,7 @@ index cf7ef1721..b627cacb8 100644
|
|||
read_files_pattern($1, logfile, logfile)
|
||||
')
|
||||
|
||||
@@ -1127,10 +1129,12 @@ interface(`logging_watch_all_logs',`
|
||||
interface(`logging_exec_all_logs',`
|
||||
gen_require(`
|
||||
attribute logfile;
|
||||
+ type var_log_t;
|
||||
')
|
||||
|
||||
files_search_var($1)
|
||||
allow $1 logfile:dir list_dir_perms;
|
||||
+ allow $1 var_log_t:lnk_file read_lnk_file_perms;
|
||||
can_exec($1, logfile)
|
||||
')
|
||||
|
||||
@@ -1192,6 +1196,7 @@ interface(`logging_manage_generic_log_dirs',`
|
||||
@@ -1175,6 +1177,7 @@ interface(`logging_manage_generic_log_dirs',`
|
||||
|
||||
files_search_var($1)
|
||||
allow $1 var_log_t:dir manage_dir_perms;
|
||||
|
|
@ -67,7 +54,7 @@ index cf7ef1721..b627cacb8 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -1212,6 +1217,7 @@ interface(`logging_relabel_generic_log_dirs',`
|
||||
@@ -1195,6 +1198,7 @@ interface(`logging_relabel_generic_log_dirs',`
|
||||
|
||||
files_search_var($1)
|
||||
allow $1 var_log_t:dir relabel_dir_perms;
|
||||
|
|
@ -75,7 +62,7 @@ index cf7ef1721..b627cacb8 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -1232,6 +1238,7 @@ interface(`logging_read_generic_logs',`
|
||||
@@ -1215,6 +1219,7 @@ interface(`logging_read_generic_logs',`
|
||||
|
||||
files_search_var($1)
|
||||
allow $1 var_log_t:dir list_dir_perms;
|
||||
|
|
@ -83,7 +70,7 @@ index cf7ef1721..b627cacb8 100644
|
|||
read_files_pattern($1, var_log_t, var_log_t)
|
||||
')
|
||||
|
||||
@@ -1333,6 +1340,7 @@ interface(`logging_manage_generic_logs',`
|
||||
@@ -1316,6 +1321,7 @@ interface(`logging_manage_generic_logs',`
|
||||
|
||||
files_search_var($1)
|
||||
manage_files_pattern($1, var_log_t, var_log_t)
|
||||
|
|
@ -91,7 +78,7 @@ index cf7ef1721..b627cacb8 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -1351,6 +1359,7 @@ interface(`logging_watch_generic_logs_dir',`
|
||||
@@ -1334,6 +1340,7 @@ interface(`logging_watch_generic_logs_dir',`
|
||||
')
|
||||
|
||||
allow $1 var_log_t:dir watch;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 26dc5529db7664ae248eba4dbc5d17915c371137 Mon Sep 17 00:00:00 2001
|
||||
From a40442cbc570b9b028ebc1da0115bc368e165c29 Mon Sep 17 00:00:00 2001
|
||||
From: Joe MacDonald <joe_macdonald@mentor.com>
|
||||
Date: Fri, 29 Mar 2019 10:33:18 -0400
|
||||
Subject: [PATCH] policy/modules/system/logging: add rules for syslogd symlink
|
||||
|
|
@ -18,10 +18,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index abd61e6bd..90d8ccd31 100644
|
||||
index 9d9a01fcc..45584dba6 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -420,6 +420,7 @@ files_search_spool(syslogd_t)
|
||||
@@ -425,6 +425,7 @@ files_search_spool(syslogd_t)
|
||||
|
||||
# Allow access for syslog-ng
|
||||
allow syslogd_t var_log_t:dir { create setattr };
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 9052089dfc4f7466fcf304ab282c2e32933a5881 Mon Sep 17 00:00:00 2001
|
||||
From b4110d4f30f6dc82c810ceaf24911b1fadb0e7c4 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] policy/modules/kernel/files: add rules for the symlink of
|
||||
|
|
@ -18,10 +18,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
2 files changed, 9 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/files.fc b/policy/modules/kernel/files.fc
|
||||
index f6ff6b079..279df3d3c 100644
|
||||
index 9a6f9d2d4..0f511c830 100644
|
||||
--- a/policy/modules/kernel/files.fc
|
||||
+++ b/policy/modules/kernel/files.fc
|
||||
@@ -170,6 +170,7 @@ HOME_ROOT/lost\+found/.* <<none>>
|
||||
@@ -171,6 +171,7 @@ HOME_ROOT/lost\+found/.* <<none>>
|
||||
# /tmp
|
||||
#
|
||||
/tmp -d gen_context(system_u:object_r:tmp_t,s0-mls_systemhigh)
|
||||
|
|
@ -30,10 +30,10 @@ index f6ff6b079..279df3d3c 100644
|
|||
/tmp/\.journal <<none>>
|
||||
|
||||
diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if
|
||||
index f7217b226..451f302af 100644
|
||||
index 9e4344d24..14b34a467 100644
|
||||
--- a/policy/modules/kernel/files.if
|
||||
+++ b/policy/modules/kernel/files.if
|
||||
@@ -4750,6 +4750,7 @@ interface(`files_search_tmp',`
|
||||
@@ -4780,6 +4780,7 @@ interface(`files_search_tmp',`
|
||||
')
|
||||
|
||||
allow $1 tmp_t:dir search_dir_perms;
|
||||
|
|
@ -41,7 +41,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4786,6 +4787,7 @@ interface(`files_list_tmp',`
|
||||
@@ -4816,6 +4817,7 @@ interface(`files_list_tmp',`
|
||||
')
|
||||
|
||||
allow $1 tmp_t:dir list_dir_perms;
|
||||
|
|
@ -49,7 +49,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4822,6 +4824,7 @@ interface(`files_delete_tmp_dir_entry',`
|
||||
@@ -4852,6 +4854,7 @@ interface(`files_delete_tmp_dir_entry',`
|
||||
')
|
||||
|
||||
allow $1 tmp_t:dir del_entry_dir_perms;
|
||||
|
|
@ -57,7 +57,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4840,6 +4843,7 @@ interface(`files_read_generic_tmp_files',`
|
||||
@@ -4870,6 +4873,7 @@ interface(`files_read_generic_tmp_files',`
|
||||
')
|
||||
|
||||
read_files_pattern($1, tmp_t, tmp_t)
|
||||
|
|
@ -65,7 +65,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4858,6 +4862,7 @@ interface(`files_manage_generic_tmp_dirs',`
|
||||
@@ -4888,6 +4892,7 @@ interface(`files_manage_generic_tmp_dirs',`
|
||||
')
|
||||
|
||||
manage_dirs_pattern($1, tmp_t, tmp_t)
|
||||
|
|
@ -73,7 +73,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4894,6 +4899,7 @@ interface(`files_manage_generic_tmp_files',`
|
||||
@@ -4924,6 +4929,7 @@ interface(`files_manage_generic_tmp_files',`
|
||||
')
|
||||
|
||||
manage_files_pattern($1, tmp_t, tmp_t)
|
||||
|
|
@ -81,7 +81,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -4930,6 +4936,7 @@ interface(`files_rw_generic_tmp_sockets',`
|
||||
@@ -4960,6 +4966,7 @@ interface(`files_rw_generic_tmp_sockets',`
|
||||
')
|
||||
|
||||
rw_sock_files_pattern($1, tmp_t, tmp_t)
|
||||
|
|
@ -89,7 +89,7 @@ index f7217b226..451f302af 100644
|
|||
')
|
||||
|
||||
########################################
|
||||
@@ -5137,6 +5144,7 @@ interface(`files_tmp_filetrans',`
|
||||
@@ -5167,6 +5174,7 @@ interface(`files_tmp_filetrans',`
|
||||
')
|
||||
|
||||
filetrans_pattern($1, tmp_t, $2, $3, $4)
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From eed095029b270bbc49dc67d6b7b6b2fe9c3bca07 Mon Sep 17 00:00:00 2001
|
||||
From bd4f7608f50da4a829d9042311163922776146ca Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] policy/modules/system/logging: fix auditd startup failures
|
||||
|
|
@ -17,10 +17,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index 90d8ccd31..d3b06db7d 100644
|
||||
index 45584dba6..8bc70b81d 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -169,6 +169,7 @@ dontaudit auditd_t auditd_etc_t:file map;
|
||||
@@ -177,6 +177,7 @@ dontaudit auditd_t auditd_etc_t:file map;
|
||||
manage_files_pattern(auditd_t, auditd_log_t, auditd_log_t)
|
||||
allow auditd_t auditd_log_t:dir setattr;
|
||||
manage_lnk_files_pattern(auditd_t, auditd_log_t, auditd_log_t)
|
||||
|
|
@ -28,7 +28,7 @@ index 90d8ccd31..d3b06db7d 100644
|
|||
allow auditd_t var_log_t:dir search_dir_perms;
|
||||
|
||||
manage_files_pattern(auditd_t, auditd_runtime_t, auditd_runtime_t)
|
||||
@@ -298,6 +299,7 @@ optional_policy(`
|
||||
@@ -306,6 +307,7 @@ optional_policy(`
|
||||
allow audisp_remote_t self:capability { setpcap setuid };
|
||||
allow audisp_remote_t self:process { getcap setcap };
|
||||
allow audisp_remote_t self:tcp_socket create_socket_perms;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 3f24b88886fcd1a17248d8d674a02d01061d937a Mon Sep 17 00:00:00 2001
|
||||
From a23028f17d5e56e20ed3930b3075ba2d1c211b16 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] policy/modules/kernel/terminal: don't audit tty_device_t in
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 9c84425bbcaef5913fb6e309b8811639134714ed Mon Sep 17 00:00:00 2001
|
||||
From 288c0c4b20a80846691d113a1759325b214d64f9 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Wed, 1 Jul 2020 08:44:07 +0800
|
||||
Subject: [PATCH] policy/modules/services/rpcbind: allow rpcbind_t to create
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
From 48da8a2589b1d5bce2609fd307ca009605d801c3 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Thu, 4 Feb 2016 06:03:19 -0500
|
||||
Subject: [PATCH] policy/modules/system/systemd: enable support for
|
||||
systemd-tmpfiles to manage all non-security files
|
||||
|
||||
Fixes:
|
||||
systemd-tmpfiles[226]: Failed to create directory or subvolume "/root/.ssh", ignoring: Permission denied
|
||||
systemd-tmpfiles[226]: Failed to create directory or subvolume "/var/lib/systemd/ephemeral-trees": Permission denied
|
||||
|
||||
AVC avc: denied { relabelfrom } for pid=226 comm="systemd-tmpfile"
|
||||
name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0
|
||||
|
||||
AVC avc: denied { write } for pid=226 comm="systemd-tmpfile"
|
||||
name="root" dev="vda" ino=643 scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=root:object_r:user_home_dir_t tclass=dir permissive=0
|
||||
|
||||
AVC avc: denied { create } for pid=226 comm="systemd-tmpfile"
|
||||
name="ephemeral-trees" scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:init_var_lib_t tclass=dir permissive=0
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/systemd.te | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index b6d575f87..70a45ac58 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -10,7 +10,7 @@ policy_module(systemd)
|
||||
## Enable support for systemd-tmpfiles to manage all non-security files.
|
||||
## </p>
|
||||
## </desc>
|
||||
-gen_tunable(systemd_tmpfiles_manage_all, false)
|
||||
+gen_tunable(systemd_tmpfiles_manage_all, true)
|
||||
|
||||
## <desc>
|
||||
## <p>
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
From 1f7fb5de202cb30c45b4051b0bce6e9b1aa53ea8 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Sat, 30 Sep 2023 17:20:29 +0800
|
||||
Subject: [PATCH] policy/modules/system/logging: allow systemd-tmpfiles to
|
||||
create /var/log/audit
|
||||
|
||||
Fixes:
|
||||
systemd[1]: Starting Security Auditing Service...
|
||||
auditd[246]: Could not open dir /var/log/audit (No such file or directory)
|
||||
auditd[246]: The audit daemon is exiting.
|
||||
systemd[1]: auditd.service: Control process exited, code=exited, status=6/NOTCONFIGURED
|
||||
systemd[1]: auditd.service: Failed with result 'exit-code'.
|
||||
systemd[1]: Failed to start Security Auditing Service.
|
||||
|
||||
AVC avc: denied { create } for pid=224 comm="systemd-tmpfile"
|
||||
name="audit" scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:auditd_log_t tclass=dir permissive=0
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/logging.te | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index 8bc70b81d..3cab14381 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -27,6 +27,10 @@ type auditd_log_t;
|
||||
files_security_file(auditd_log_t)
|
||||
files_security_mountpoint(auditd_log_t)
|
||||
|
||||
+optional_policy(`
|
||||
+ systemd_tmpfilesd_managed(auditd_log_t)
|
||||
+')
|
||||
+
|
||||
type audit_spool_t;
|
||||
files_security_file(audit_spool_t)
|
||||
files_security_mountpoint(audit_spool_t)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
From 6465e39b6dfe8daa88cab321e3cf44ccc9f1441d Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Thu, 4 Feb 2016 06:03:19 -0500
|
||||
Subject: [PATCH] policy/modules/system/systemd: enable support for
|
||||
systemd-tmpfiles to manage all non-security files
|
||||
|
||||
Fixes:
|
||||
systemd-tmpfiles[137]: Failed to create directory or subvolume "/var/volatile/log": Permission denied
|
||||
systemd-tmpfiles[137]: Failed to create directory or subvolume "/var/volatile/tmp": Permission denied
|
||||
systemd-tmpfiles[137]: Failed to create directory or subvolume "/var/log/audit": Permission denied
|
||||
|
||||
avc: denied { write } for pid=137 comm="systemd-tmpfile" name="/"
|
||||
dev="tmpfs" ino=12400 scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:tmpfs_t tclass=dir permissive=0
|
||||
|
||||
avc: denied { read } for pid=137 comm="systemd-tmpfile" name="dbus"
|
||||
dev="vda" ino=12363 scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:system_dbusd_var_lib_t tclass=dir
|
||||
permissive=0
|
||||
|
||||
avc: denied { relabelfrom } for pid=137 comm="systemd-tmpfile"
|
||||
name="log" dev="vda" ino=14129
|
||||
scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:var_log_t tclass=lnk_file permissive=0
|
||||
|
||||
avc: denied { create } for pid=137 comm="systemd-tmpfile"
|
||||
name="audit" scontext=system_u:system_r:systemd_tmpfiles_t
|
||||
tcontext=system_u:object_r:auditd_log_t tclass=dir permissive=0
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/system/systemd.te | 6 +++++-
|
||||
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index ef25974ac..362248d17 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -10,7 +10,7 @@ policy_module(systemd)
|
||||
## Enable support for systemd-tmpfiles to manage all non-security files.
|
||||
## </p>
|
||||
## </desc>
|
||||
-gen_tunable(systemd_tmpfiles_manage_all, false)
|
||||
+gen_tunable(systemd_tmpfiles_manage_all, true)
|
||||
|
||||
## <desc>
|
||||
## <p>
|
||||
@@ -1640,6 +1640,10 @@ files_relabelfrom_home(systemd_tmpfiles_t)
|
||||
files_relabelto_home(systemd_tmpfiles_t)
|
||||
files_relabelto_etc_dirs(systemd_tmpfiles_t)
|
||||
files_setattr_lock_dirs(systemd_tmpfiles_t)
|
||||
+
|
||||
+files_manage_non_auth_files(systemd_tmpfiles_t)
|
||||
+files_relabel_non_auth_files(systemd_tmpfiles_t)
|
||||
+
|
||||
# for /etc/mtab
|
||||
files_manage_etc_symlinks(systemd_tmpfiles_t)
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
From 2acb5ddbd04c578a420418e3bcb572bbd2dfbae6 Mon Sep 17 00:00:00 2001
|
||||
From 5d53b5ab28038eb7e326ab577e0b5e0799c9500b Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Sat, 18 Dec 2021 09:26:43 +0800
|
||||
Subject: [PATCH] policy/modules/system/systemd: allow systemd_logind_t to read
|
||||
|
|
@ -27,10 +27,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index 362248d17..4a1e06640 100644
|
||||
index 70a45ac58..42520f9f8 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -920,6 +920,7 @@ userdom_relabelfrom_user_runtime_dirs(systemd_logind_t)
|
||||
@@ -980,6 +980,7 @@ userdom_relabelfrom_user_runtime_dirs(systemd_logind_t)
|
||||
userdom_relabelto_user_runtime_dirs(systemd_logind_t)
|
||||
userdom_setattr_user_ttys(systemd_logind_t)
|
||||
userdom_use_user_ttys(systemd_logind_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 51a7f8058fee569322c1a0597fccd36c318ad943 Mon Sep 17 00:00:00 2001
|
||||
From 11c172fe44a22341b686dc537fde4991b7a49ed5 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Fri, 28 Oct 2022 11:56:09 +0800
|
||||
Subject: [PATCH] policy/modules/roles/sysadm: allow sysadm to use init file
|
||||
|
|
@ -19,10 +19,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te
|
||||
index bb715a847..088c954f5 100644
|
||||
index 936381f25..a6b0c35f3 100644
|
||||
--- a/policy/modules/roles/sysadm.te
|
||||
+++ b/policy/modules/roles/sysadm.te
|
||||
@@ -86,6 +86,8 @@ ifdef(`init_systemd',`
|
||||
@@ -92,6 +92,8 @@ ifdef(`init_systemd',`
|
||||
# LookupDynamicUserByUID on org.freedesktop.systemd1.
|
||||
init_dbus_chat(sysadm_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 5b6f3fcb1ddabd0a66541959306e7b0adfe2b2b0 Mon Sep 17 00:00:00 2001
|
||||
From 9dcbec008d4213c6649f894fda0e87b0829c56de Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Thu, 4 Feb 2021 10:48:54 +0800
|
||||
Subject: [PATCH] policy/modules/system/systemd: systemd --user fixes
|
||||
|
|
@ -26,59 +26,66 @@ Upstream-Status: Inappropriate [embedded specific]
|
|||
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
---
|
||||
policy/modules/roles/sysadm.te | 2 ++
|
||||
policy/modules/system/systemd.if | 21 ++++++++++++++++++++-
|
||||
2 files changed, 22 insertions(+), 1 deletion(-)
|
||||
policy/modules/system/systemd.if | 30 +++++++++++++++++++++++++++++
|
||||
policy/modules/system/userdomain.if | 4 ++++
|
||||
2 files changed, 34 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te
|
||||
index 088c954f5..92f50fd5a 100644
|
||||
--- a/policy/modules/roles/sysadm.te
|
||||
+++ b/policy/modules/roles/sysadm.te
|
||||
@@ -98,6 +98,8 @@ ifdef(`init_systemd',`
|
||||
|
||||
# Allow sysadm to follow logs in the journal, i.e. with podman logs -f
|
||||
systemd_watch_journal_dirs(sysadm_t)
|
||||
+
|
||||
+ systemd_sysadm_user(sysadm_t)
|
||||
')
|
||||
|
||||
tunable_policy(`allow_ptrace',`
|
||||
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
|
||||
index 9dc91fbb7..325ca548b 100644
|
||||
index 6054b5038..d89ad35b1 100644
|
||||
--- a/policy/modules/system/systemd.if
|
||||
+++ b/policy/modules/system/systemd.if
|
||||
@@ -58,7 +58,7 @@ template(`systemd_role_template',`
|
||||
allow $1_systemd_t self:process { getsched signal };
|
||||
allow $1_systemd_t self:netlink_kobject_uevent_socket create_socket_perms;
|
||||
allow $1_systemd_t self:unix_stream_socket create_stream_socket_perms;
|
||||
- allow $1_systemd_t $3:process { setsched rlimitinh signal_perms };
|
||||
+ allow $1_systemd_t $3:process { setsched rlimitinh signal_perms noatsecure };
|
||||
corecmd_shell_domtrans($1_systemd_t, $3)
|
||||
corecmd_bin_domtrans($1_systemd_t, $3)
|
||||
|
||||
@@ -2613,3 +2613,22 @@ interface(`systemd_use_inherited_machined_ptys', `
|
||||
allow $1 systemd_machined_t:fd use;
|
||||
allow $1 systemd_machined_devpts_t:chr_file rw_inherited_term_perms;
|
||||
@@ -199,6 +199,36 @@ template(`systemd_role_template',`
|
||||
')
|
||||
')
|
||||
+
|
||||
+#########################################
|
||||
|
||||
+######################################
|
||||
+## <summary>
|
||||
+## sysadm user for systemd --user
|
||||
+## Admin role for systemd --user
|
||||
+## </summary>
|
||||
+## <param name="prefix">
|
||||
+## <summary>
|
||||
+## Prefix for generated types
|
||||
+## </summary>
|
||||
+## </param>
|
||||
+## <param name="role">
|
||||
+## <summary>
|
||||
+## Role allowed access.
|
||||
+## The admin role.
|
||||
+## </summary>
|
||||
+## </param>
|
||||
+## <param name="userdomain">
|
||||
+## <summary>
|
||||
+## The amdin domain for the role.
|
||||
+## </summary>
|
||||
+## </param>
|
||||
+#
|
||||
+interface(`systemd_sysadm_user',`
|
||||
+template(`systemd_admin_role_extra',`
|
||||
+ gen_require(`
|
||||
+ type sysadm_systemd_t;
|
||||
+ type $1_systemd_t;
|
||||
+ ')
|
||||
+
|
||||
+ allow sysadm_systemd_t self:capability { mknod sys_admin };
|
||||
+ allow sysadm_systemd_t self:capability2 { bpf perfmon };
|
||||
+ allow $1_systemd_t $3:process noatsecure;
|
||||
+ allow $1_systemd_t self:capability { mknod sys_admin };
|
||||
+ allow $1_systemd_t self:capability2 { bpf perfmon };
|
||||
+')
|
||||
+
|
||||
######################################
|
||||
## <summary>
|
||||
## Allow the specified domain to be started as a daemon by the
|
||||
diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if
|
||||
index 24c3cb012..80072c03e 100644
|
||||
--- a/policy/modules/system/userdomain.if
|
||||
+++ b/policy/modules/system/userdomain.if
|
||||
@@ -1455,6 +1455,10 @@ template(`userdom_admin_user_template',`
|
||||
optional_policy(`
|
||||
userhelper_exec($1_t)
|
||||
')
|
||||
+
|
||||
+ optional_policy(`
|
||||
+ systemd_admin_role_extra($1, $1_r, $1_t)
|
||||
+ ')
|
||||
')
|
||||
|
||||
########################################
|
||||
--
|
||||
2.25.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From ccdd22cc2776b695f96faffc88699aa2b182e085 Mon Sep 17 00:00:00 2001
|
||||
From 15e29022299d44fbb172560b448c531b9714616b Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Sat, 15 Feb 2014 04:22:47 -0500
|
||||
Subject: [PATCH] policy/modules/system/mount: make mount_t domain MLS trusted
|
||||
|
|
@ -19,10 +19,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/system/mount.te b/policy/modules/system/mount.te
|
||||
index d028723ce..97f49e58e 100644
|
||||
index e08df77a5..30b26841f 100644
|
||||
--- a/policy/modules/system/mount.te
|
||||
+++ b/policy/modules/system/mount.te
|
||||
@@ -112,6 +112,7 @@ fs_dontaudit_write_all_image_files(mount_t)
|
||||
@@ -113,6 +113,7 @@ fs_dontaudit_write_all_image_files(mount_t)
|
||||
|
||||
mls_file_read_all_levels(mount_t)
|
||||
mls_file_write_all_levels(mount_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 64498d6cd30a0a65a24e3e7ab22cca5921c2db89 Mon Sep 17 00:00:00 2001
|
||||
From 183070b02b5ca9aeb8fd58c8c737b5f9589e9a12 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Mon, 28 Jan 2019 14:05:18 +0800
|
||||
Subject: [PATCH] policy/modules/roles/sysadm: MLS - sysadm rw to clearance
|
||||
|
|
@ -23,7 +23,7 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/roles/sysadm.te b/policy/modules/roles/sysadm.te
|
||||
index 92f50fd5a..8c154d474 100644
|
||||
index a6b0c35f3..68f7ab381 100644
|
||||
--- a/policy/modules/roles/sysadm.te
|
||||
+++ b/policy/modules/roles/sysadm.te
|
||||
@@ -45,6 +45,8 @@ logging_watch_all_logs(sysadm_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From e82c43e60ef52ba00e8f2af5b46b2a6d49331209 Mon Sep 17 00:00:00 2001
|
||||
From 3b93adc08461ebea92d018bf7704386426f129d3 Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Fri, 23 Aug 2013 12:01:53 +0800
|
||||
Subject: [PATCH] policy/modules/services/rpc: make nfsd_t domain MLS trusted
|
||||
|
|
@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
2 files changed, 7 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te
|
||||
index 5124ae016..a40db8507 100644
|
||||
index e449160d8..9ef5e0b6f 100644
|
||||
--- a/policy/modules/kernel/kernel.te
|
||||
+++ b/policy/modules/kernel/kernel.te
|
||||
@@ -368,6 +368,8 @@ mls_process_read_all_levels(kernel_t)
|
||||
@@ -373,6 +373,8 @@ mls_process_read_all_levels(kernel_t)
|
||||
mls_process_write_all_levels(kernel_t)
|
||||
mls_file_write_all_levels(kernel_t)
|
||||
mls_file_read_all_levels(kernel_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 9343914c0486b5aa6ff7cceeb8f6c399115e5fb3 Mon Sep 17 00:00:00 2001
|
||||
From 7b5cac323ea0638fcd5d35658f49c644f32d3442 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Tue, 30 Jun 2020 10:18:20 +0800
|
||||
Subject: [PATCH] policy/modules/admin/dmesg: make dmesg_t MLS trusted reading
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 057e4e6a6e2e87edcd6a93dd533620700b00b1c2 Mon Sep 17 00:00:00 2001
|
||||
From fd0d3887275237c1f1968d20972b535b9fdc9954 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Fri, 13 Oct 2017 07:20:40 +0000
|
||||
Subject: [PATCH] policy/modules/kernel/kernel: make kernel_t MLS trusted for
|
||||
|
|
@ -59,10 +59,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te
|
||||
index a40db8507..40cd52825 100644
|
||||
index 9ef5e0b6f..8082cf6b7 100644
|
||||
--- a/policy/modules/kernel/kernel.te
|
||||
+++ b/policy/modules/kernel/kernel.te
|
||||
@@ -370,6 +370,8 @@ mls_file_write_all_levels(kernel_t)
|
||||
@@ -375,6 +375,8 @@ mls_file_write_all_levels(kernel_t)
|
||||
mls_file_read_all_levels(kernel_t)
|
||||
mls_socket_write_all_levels(kernel_t)
|
||||
mls_fd_use_all_levels(kernel_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From c47e288e8950e7e92e3c90972ca7ef8ef9fc6a7f Mon Sep 17 00:00:00 2001
|
||||
From f2fcbcde9dc16985f1ffa43329fb47d36d132bd3 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Fri, 15 Jan 2016 03:47:05 -0500
|
||||
Subject: [PATCH] policy/modules/system/init: make init_t MLS trusted for
|
||||
|
|
@ -27,10 +27,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
|
||||
index 97a75cf86..fee846cb5 100644
|
||||
index d19734d6f..8b9b8aa9a 100644
|
||||
--- a/policy/modules/system/init.te
|
||||
+++ b/policy/modules/system/init.te
|
||||
@@ -229,6 +229,10 @@ mls_process_write_all_levels(init_t)
|
||||
@@ -238,6 +238,10 @@ mls_process_write_all_levels(init_t)
|
||||
mls_fd_use_all_levels(init_t)
|
||||
mls_process_set_level(init_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From afd35f6c73551c674e5bfe7cc1832b6a0ea717a6 Mon Sep 17 00:00:00 2001
|
||||
From ff749bb5ba3786283c348bb2db160794ba74e20c Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Thu, 4 Feb 2016 06:03:19 -0500
|
||||
Subject: [PATCH] policy/modules/system/systemd: make systemd-tmpfiles_t domain
|
||||
|
|
@ -43,10 +43,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index 4a1e06640..b44b9b2d7 100644
|
||||
index 42520f9f8..7a2041956 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -1694,6 +1694,11 @@ sysnet_relabel_config(systemd_tmpfiles_t)
|
||||
@@ -1813,6 +1813,11 @@ sysnet_relabel_config(systemd_tmpfiles_t)
|
||||
|
||||
systemd_log_parse_environment(systemd_tmpfiles_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 8aa70c13d63e093bff87ea938d35dcc76e5bdd56 Mon Sep 17 00:00:00 2001
|
||||
From a1d15d213fee3e40129968dbd9928d5012d541f7 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Thu, 18 Jun 2020 09:59:58 +0800
|
||||
Subject: [PATCH] policy/modules/system/systemd: systemd-*: make systemd_*_t
|
||||
|
|
@ -43,10 +43,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
||||
index b44b9b2d7..7b717d3ba 100644
|
||||
index 7a2041956..52c7b5346 100644
|
||||
--- a/policy/modules/system/systemd.te
|
||||
+++ b/policy/modules/system/systemd.te
|
||||
@@ -373,6 +373,9 @@ files_search_var_lib(systemd_backlight_t)
|
||||
@@ -383,6 +383,9 @@ files_search_var_lib(systemd_backlight_t)
|
||||
fs_getattr_all_fs(systemd_backlight_t)
|
||||
fs_search_cgroup_dirs(systemd_backlight_t)
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ index b44b9b2d7..7b717d3ba 100644
|
|||
#######################################
|
||||
#
|
||||
# Binfmt local policy
|
||||
@@ -528,6 +531,9 @@ term_use_unallocated_ttys(systemd_generator_t)
|
||||
@@ -545,6 +548,9 @@ term_use_unallocated_ttys(systemd_generator_t)
|
||||
|
||||
udev_read_runtime_files(systemd_generator_t)
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ index b44b9b2d7..7b717d3ba 100644
|
|||
ifdef(`distro_gentoo',`
|
||||
corecmd_shell_entry_type(systemd_generator_t)
|
||||
')
|
||||
@@ -922,6 +928,9 @@ userdom_setattr_user_ttys(systemd_logind_t)
|
||||
@@ -982,6 +988,9 @@ userdom_setattr_user_ttys(systemd_logind_t)
|
||||
userdom_use_user_ttys(systemd_logind_t)
|
||||
domain_read_all_domains_state(systemd_logind_t)
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ index b44b9b2d7..7b717d3ba 100644
|
|||
# Needed to work around patch not yet merged into the systemd-logind supported on RHEL 7.x
|
||||
# The change in systemd by Nicolas Iooss on 02-Feb-2016 with hash 4b51966cf6c06250036e428608da92f8640beb96
|
||||
# should fix the problem where user directories in /run/user/$UID/ are not getting the proper context
|
||||
@@ -1412,6 +1421,9 @@ udev_read_runtime_files(systemd_rfkill_t)
|
||||
@@ -1527,6 +1536,9 @@ udev_read_runtime_files(systemd_rfkill_t)
|
||||
|
||||
systemd_log_parse_environment(systemd_rfkill_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 2afa5753f2ef8c7cee5ad0511c521d252bedf3e5 Mon Sep 17 00:00:00 2001
|
||||
From 8c45c5d48f7125ce47252c6ea36ed771c9baaf4d Mon Sep 17 00:00:00 2001
|
||||
From: Xin Ouyang <Xin.Ouyang@windriver.com>
|
||||
Date: Thu, 22 Aug 2013 13:37:23 +0800
|
||||
Subject: [PATCH] policy/modules/system/logging: add the syslogd_t to trusted
|
||||
|
|
@ -18,10 +18,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index d3b06db7d..f63965d4d 100644
|
||||
index 3cab14381..caf319f04 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -505,6 +505,9 @@ fs_getattr_all_fs(syslogd_t)
|
||||
@@ -491,6 +491,9 @@ fs_getattr_all_fs(syslogd_t)
|
||||
fs_search_auto_mountpoints(syslogd_t)
|
||||
|
||||
mls_file_write_all_levels(syslogd_t) # Need to be able to write to /var/run/ and /var/log directories
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From f87bb3cb0843af69f9aecaef0a4052e04b15a630 Mon Sep 17 00:00:00 2001
|
||||
From 6867f764b99e48cfa6557e664c9ee8ae8947eb08 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Tue, 28 May 2019 16:41:37 +0800
|
||||
Subject: [PATCH] policy/modules/system/init: make init_t MLS trusted for
|
||||
|
|
@ -17,10 +17,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
|
||||
index fee846cb5..df7f87f17 100644
|
||||
index 8b9b8aa9a..bd2ca0802 100644
|
||||
--- a/policy/modules/system/init.te
|
||||
+++ b/policy/modules/system/init.te
|
||||
@@ -228,6 +228,7 @@ mls_file_write_all_levels(init_t)
|
||||
@@ -237,6 +237,7 @@ mls_file_write_all_levels(init_t)
|
||||
mls_process_write_all_levels(init_t)
|
||||
mls_fd_use_all_levels(init_t)
|
||||
mls_process_set_level(init_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From f3c0f18b647631fd2ffc1e86c9e3f51cbf74d60f Mon Sep 17 00:00:00 2001
|
||||
From ad9b0e1542804060ac3cea69129c224074da6766 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Wed, 3 Feb 2016 04:16:06 -0500
|
||||
Subject: [PATCH] policy/modules/system/init: all init_t to read any level
|
||||
|
|
@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
|
||||
index df7f87f17..671b5aef3 100644
|
||||
index bd2ca0802..e94a29a73 100644
|
||||
--- a/policy/modules/system/init.te
|
||||
+++ b/policy/modules/system/init.te
|
||||
@@ -234,6 +234,9 @@ mls_key_write_all_levels(init_t)
|
||||
@@ -243,6 +243,9 @@ mls_key_write_all_levels(init_t)
|
||||
mls_file_downgrade(init_t)
|
||||
mls_file_upgrade(init_t)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From cb7a4ff6081f19d05b109512275ec9a537f2f6d2 Mon Sep 17 00:00:00 2001
|
||||
From 315a53e50dd8957787e3a71c57ffc8ac46d0c474 Mon Sep 17 00:00:00 2001
|
||||
From: Wenzong Fan <wenzong.fan@windriver.com>
|
||||
Date: Thu, 25 Feb 2016 04:25:08 -0500
|
||||
Subject: [PATCH] policy/modules/system/logging: allow auditd_t to write socket
|
||||
|
|
@ -22,10 +22,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index f63965d4d..7e41596f4 100644
|
||||
index caf319f04..25e1d1397 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -223,6 +223,8 @@ miscfiles_read_localization(auditd_t)
|
||||
@@ -235,6 +235,8 @@ miscfiles_read_localization(auditd_t)
|
||||
|
||||
mls_file_read_all_levels(auditd_t)
|
||||
mls_file_write_all_levels(auditd_t) # Need to be able to write to /var/run/ directory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 023e7b92a805103c54aec06bbd9465e4fbf7a6f2 Mon Sep 17 00:00:00 2001
|
||||
From 1c275b335fd047c678b449bf90a75a7ac48c2b38 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Thu, 31 Oct 2019 17:35:59 +0800
|
||||
Subject: [PATCH] policy/modules/kernel/kernel: make kernel_t MLS trusted for
|
||||
|
|
@ -15,10 +15,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/policy/modules/kernel/kernel.te b/policy/modules/kernel/kernel.te
|
||||
index 40cd52825..d08610543 100644
|
||||
index 8082cf6b7..63c2087f7 100644
|
||||
--- a/policy/modules/kernel/kernel.te
|
||||
+++ b/policy/modules/kernel/kernel.te
|
||||
@@ -372,6 +372,7 @@ mls_socket_write_all_levels(kernel_t)
|
||||
@@ -377,6 +377,7 @@ mls_socket_write_all_levels(kernel_t)
|
||||
mls_fd_use_all_levels(kernel_t)
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=667370
|
||||
mls_file_downgrade(kernel_t)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 55fe90eba640e6d52bb269176f45a3a5e2c3ed80 Mon Sep 17 00:00:00 2001
|
||||
From 95f5c28ce9ed0a6d955afa758988ef8542644a64 Mon Sep 17 00:00:00 2001
|
||||
From: Roy Li <rongqing.li@windriver.com>
|
||||
Date: Sat, 22 Feb 2014 13:35:38 +0800
|
||||
Subject: [PATCH] policy/modules/system/setrans: allow setrans_t use fd at any
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From c9afe0dc30f51f7ad7b93b8878c88df1146272a0 Mon Sep 17 00:00:00 2001
|
||||
From 7af0a6b367cb21943d111c9f6386e40efdc02907 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Mon, 22 Feb 2021 11:28:12 +0800
|
||||
Subject: [PATCH] policy/modules/system/systemd: make *_systemd_t MLS trusted
|
||||
|
|
@ -24,10 +24,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
|
||||
index 325ca548b..b23b9bb0a 100644
|
||||
index d89ad35b1..00ac2f27e 100644
|
||||
--- a/policy/modules/system/systemd.if
|
||||
+++ b/policy/modules/system/systemd.if
|
||||
@@ -196,6 +196,9 @@ template(`systemd_role_template',`
|
||||
@@ -197,6 +197,9 @@ template(`systemd_role_template',`
|
||||
xdg_read_config_files($1_systemd_t)
|
||||
xdg_read_data_files($1_systemd_t)
|
||||
')
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
From 7a65c9f3636b43f3a29349ea1c045d5281efa5aa Mon Sep 17 00:00:00 2001
|
||||
From 1536eaea2cc68074f55ca50eff2d129b7e1894d8 Mon Sep 17 00:00:00 2001
|
||||
From: Yi Zhao <yi.zhao@windriver.com>
|
||||
Date: Sat, 18 Dec 2021 17:31:45 +0800
|
||||
Subject: [PATCH] policy/modules/system/logging: make syslogd_runtime_t MLS
|
||||
|
|
@ -31,10 +31,10 @@ Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
|||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/logging.te b/policy/modules/system/logging.te
|
||||
index 7e41596f4..0c25457d6 100644
|
||||
index 25e1d1397..ba0fd10e0 100644
|
||||
--- a/policy/modules/system/logging.te
|
||||
+++ b/policy/modules/system/logging.te
|
||||
@@ -447,6 +447,8 @@ allow syslogd_t syslogd_runtime_t:file map;
|
||||
@@ -456,6 +456,8 @@ allow syslogd_t syslogd_runtime_t:file map;
|
||||
manage_files_pattern(syslogd_t, syslogd_runtime_t, syslogd_runtime_t)
|
||||
files_runtime_filetrans(syslogd_t, syslogd_runtime_t, file)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,31 +26,31 @@ SRC_URI += " \
|
|||
file://0008-fc-dmesg-apply-policy-to-dmesg-alternatives.patch \
|
||||
file://0009-fc-ssh-apply-policy-to-ssh-alternatives.patch \
|
||||
file://0010-fc-sysnetwork-apply-policy-to-network-commands-alter.patch \
|
||||
file://0011-fc-udev-apply-policy-to-udevadm-in-libexec.patch \
|
||||
file://0012-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch \
|
||||
file://0013-fc-su-apply-policy-to-su-alternatives.patch \
|
||||
file://0014-fc-fstools-fix-real-path-for-fstools.patch \
|
||||
file://0015-fc-init-fix-update-alternatives-for-sysvinit.patch \
|
||||
file://0016-fc-brctl-apply-policy-to-brctl-alternatives.patch \
|
||||
file://0017-fc-corecommands-apply-policy-to-nologin-alternatives.patch \
|
||||
file://0018-fc-locallogin-apply-policy-to-sulogin-alternatives.patch \
|
||||
file://0019-fc-ntp-apply-policy-to-ntpd-alternatives.patch \
|
||||
file://0020-fc-kerberos-apply-policy-to-kerberos-alternatives.patch \
|
||||
file://0021-fc-ldap-apply-policy-to-ldap-alternatives.patch \
|
||||
file://0022-fc-postgresql-apply-policy-to-postgresql-alternative.patch \
|
||||
file://0023-fc-screen-apply-policy-to-screen-alternatives.patch \
|
||||
file://0024-fc-usermanage-apply-policy-to-usermanage-alternative.patch \
|
||||
file://0025-fc-getty-add-file-context-to-start_getty.patch \
|
||||
file://0026-fc-vlock-apply-policy-to-vlock-alternatives.patch \
|
||||
file://0027-fc-add-fcontext-for-init-scripts-and-systemd-service.patch \
|
||||
file://0028-file_contexts.subs_dist-set-aliase-for-root-director.patch \
|
||||
file://0029-policy-modules-system-logging-add-rules-for-the-syml.patch \
|
||||
file://0030-policy-modules-system-logging-add-rules-for-syslogd-.patch \
|
||||
file://0031-policy-modules-kernel-files-add-rules-for-the-symlin.patch \
|
||||
file://0032-policy-modules-system-logging-fix-auditd-startup-fai.patch \
|
||||
file://0033-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch \
|
||||
file://0034-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch \
|
||||
file://0035-policy-modules-system-systemd-enable-support-for-sys.patch \
|
||||
file://0011-fc-rpm-apply-rpm_exec-policy-to-cpio-binaries.patch \
|
||||
file://0012-fc-su-apply-policy-to-su-alternatives.patch \
|
||||
file://0013-fc-fstools-fix-real-path-for-fstools.patch \
|
||||
file://0014-fc-init-fix-update-alternatives-for-sysvinit.patch \
|
||||
file://0015-fc-brctl-apply-policy-to-brctl-alternatives.patch \
|
||||
file://0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch \
|
||||
file://0017-fc-locallogin-apply-policy-to-sulogin-alternatives.patch \
|
||||
file://0018-fc-ntp-apply-policy-to-ntpd-alternatives.patch \
|
||||
file://0019-fc-kerberos-apply-policy-to-kerberos-alternatives.patch \
|
||||
file://0020-fc-ldap-apply-policy-to-ldap-alternatives.patch \
|
||||
file://0021-fc-postgresql-apply-policy-to-postgresql-alternative.patch \
|
||||
file://0022-fc-screen-apply-policy-to-screen-alternatives.patch \
|
||||
file://0023-fc-usermanage-apply-policy-to-usermanage-alternative.patch \
|
||||
file://0024-fc-getty-add-file-context-to-start_getty.patch \
|
||||
file://0025-fc-vlock-apply-policy-to-vlock-alternatives.patch \
|
||||
file://0026-fc-add-fcontext-for-init-scripts-and-systemd-service.patch \
|
||||
file://0027-file_contexts.subs_dist-set-aliase-for-root-director.patch \
|
||||
file://0028-policy-modules-system-logging-add-rules-for-the-syml.patch \
|
||||
file://0029-policy-modules-system-logging-add-rules-for-syslogd-.patch \
|
||||
file://0030-policy-modules-kernel-files-add-rules-for-the-symlin.patch \
|
||||
file://0031-policy-modules-system-logging-fix-auditd-startup-fai.patch \
|
||||
file://0032-policy-modules-kernel-terminal-don-t-audit-tty_devic.patch \
|
||||
file://0033-policy-modules-services-rpcbind-allow-rpcbind_t-to-c.patch \
|
||||
file://0034-policy-modules-system-systemd-enable-support-for-sys.patch \
|
||||
file://0035-policy-modules-system-logging-allow-systemd-tmpfiles.patch \
|
||||
file://0036-policy-modules-system-systemd-allow-systemd_logind_t.patch \
|
||||
file://0037-policy-modules-roles-sysadm-allow-sysadm-to-use-init.patch \
|
||||
file://0038-policy-modules-system-systemd-systemd-user-fixes.patch \
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
PV = "2.20221101+git${SRCPV}"
|
||||
PV = "2.20231002+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://github.com/SELinuxProject/refpolicy.git;protocol=https;branch=master;name=refpolicy;destsuffix=refpolicy"
|
||||
SRC_URI = "git://github.com/SELinuxProject/refpolicy.git;protocol=https;branch=main;name=refpolicy;destsuffix=refpolicy"
|
||||
|
||||
SRCREV_refpolicy ?= "8e8f5e3ca3e5900cad126cb8b4fadaa8adb8caac"
|
||||
SRCREV_refpolicy ?= "f3865abfc25a395c877a27074bd03c5fc22992dd"
|
||||
|
||||
UPSTREAM_CHECK_GITTAGREGEX = "RELEASE_(?P<pver>\d+_\d+)"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user