diff options
| author | Yi Zhao <yi.zhao@windriver.com> | 2020-07-07 16:29:12 +0800 |
|---|---|---|
| committer | Joe MacDonald <joe@deserted.net> | 2020-07-14 18:56:06 -0400 |
| commit | 15fed8756aa4828fa12a3d813754b4ca65a7607d (patch) | |
| tree | f12c257abba3e21ec17f7fb97e74c615ab9ff18f /recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch | |
| parent | 7d3b1347ae949c7208482694fd773e4bc3f321b4 (diff) | |
| download | meta-selinux-15fed8756aa4828fa12a3d813754b4ca65a7607d.tar.gz | |
refpolicy: update to 20200229+git
* Drop obsolete and unused patches.
* Rebase patches.
* Add patches to make systemd and sysvinit can work with all policy types.
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch')
| -rw-r--r-- | recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch b/recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch deleted file mode 100644 index aec54cd..0000000 --- a/recipes-security/refpolicy/refpolicy-git/0005-refpolicy-minimum-init-fix-reboot-with-systemd-as-in.patch +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | From 54a00a22a0d9aca794440bf51511f5477e9249d2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Shrikant Bobade <shrikant_bobade@mentor.com> | ||
| 3 | Date: Fri, 26 Aug 2016 17:53:53 +0530 | ||
| 4 | Subject: [PATCH 5/9] refpolicy-minimum: init: fix reboot with systemd as init | ||
| 5 | manager. | ||
| 6 | |||
| 7 | add allow rule to fix avc denial during system reboot. | ||
| 8 | |||
| 9 | without this change we are getting: | ||
| 10 | |||
| 11 | audit: type=1107 audit(): pid=1 uid=0 auid=4294967295 ses=4294967295 subj= | ||
| 12 | system_u:system_r:init_t:s0 msg='avc: denied { reboot } for auid=n/a uid=0 | ||
| 13 | gid=0 cmdline="/bin/systemctl --force reboot" scontext=system_u:system_r: | ||
| 14 | initrc_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=system | ||
| 15 | |||
| 16 | Upstream-Status: Pending | ||
| 17 | |||
| 18 | Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com> | ||
| 19 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
| 20 | --- | ||
| 21 | policy/modules/system/init.te | 2 +- | ||
| 22 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 23 | |||
| 24 | diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te | ||
| 25 | index e15ec4b9..843fdcff 100644 | ||
| 26 | --- a/policy/modules/system/init.te | ||
| 27 | +++ b/policy/modules/system/init.te | ||
| 28 | @@ -1427,5 +1427,5 @@ allow devpts_t device_t:filesystem associate; | ||
| 29 | allow init_t self:capability2 block_suspend; | ||
| 30 | allow init_t self:capability2 audit_read; | ||
| 31 | |||
| 32 | -allow initrc_t init_t:system { start status }; | ||
| 33 | +allow initrc_t init_t:system { start status reboot }; | ||
| 34 | allow initrc_t init_var_run_t:service { start status }; | ||
| 35 | -- | ||
| 36 | 2.19.1 | ||
| 37 | |||
