diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch b/recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch deleted file mode 100644 index 98d98d4..0000000 --- a/recipes-security/refpolicy/refpolicy-git/0001-fix-update-alternatives-for-sysvinit.patch +++ /dev/null | |||
@@ -1,53 +0,0 @@ | |||
1 | From cf2f08bdb2d64b38b6c83c96f409c1cd9975fe6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Thu, 22 Aug 2013 13:37:23 +0800 | ||
4 | Subject: [PATCH] fix update-alternatives for sysvinit | ||
5 | |||
6 | Upstream-Status: Inappropriate [only for Poky] | ||
7 | |||
8 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
9 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
10 | --- | ||
11 | policy/modules/admin/shutdown.fc | 1 + | ||
12 | policy/modules/kernel/corecommands.fc | 1 + | ||
13 | policy/modules/system/init.fc | 1 + | ||
14 | 3 files changed, 3 insertions(+) | ||
15 | |||
16 | diff --git a/policy/modules/admin/shutdown.fc b/policy/modules/admin/shutdown.fc | ||
17 | index 03a2230c..2ba049ff 100644 | ||
18 | --- a/policy/modules/admin/shutdown.fc | ||
19 | +++ b/policy/modules/admin/shutdown.fc | ||
20 | @@ -5,5 +5,6 @@ | ||
21 | /usr/lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
22 | |||
23 | /usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
24 | +/usr/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
25 | |||
26 | /run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_var_run_t,s0) | ||
27 | diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc | ||
28 | index cf3848db..86920167 100644 | ||
29 | --- a/policy/modules/kernel/corecommands.fc | ||
30 | +++ b/policy/modules/kernel/corecommands.fc | ||
31 | @@ -149,6 +149,7 @@ ifdef(`distro_gentoo',` | ||
32 | /usr/bin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) | ||
33 | /usr/bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
34 | /usr/bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0) | ||
35 | +/usr/bin/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0) | ||
36 | /usr/bin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
37 | /usr/bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
38 | /usr/bin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
39 | diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc | ||
40 | index 11a6ce93..93e9d2b4 100644 | ||
41 | --- a/policy/modules/system/init.fc | ||
42 | +++ b/policy/modules/system/init.fc | ||
43 | @@ -23,6 +23,7 @@ ifdef(`distro_gentoo',` | ||
44 | # /usr | ||
45 | # | ||
46 | /usr/bin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) | ||
47 | +/usr/sbin/init\.sysvinit -- gen_context(system_u:object_r:init_exec_t,s0) | ||
48 | /usr/bin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0) | ||
49 | /usr/bin/sepg_ctl -- gen_context(system_u:object_r:initrc_exec_t,s0) | ||
50 | /usr/bin/systemd -- gen_context(system_u:object_r:init_exec_t,s0) | ||
51 | -- | ||
52 | 2.19.1 | ||
53 | |||