diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch b/recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch deleted file mode 100644 index d8c1642..0000000 --- a/recipes-security/refpolicy/refpolicy-2.20170204/poky-fc-update-alternatives_sysvinit.patch +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | From 22cd030a8118faae37c0835eb7875e482efe5dc1 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 1/4] 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/contrib/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 | --- a/policy/modules/contrib/shutdown.fc | ||
17 | +++ b/policy/modules/contrib/shutdown.fc | ||
18 | @@ -1,10 +1,11 @@ | ||
19 | /etc/nologin -- gen_context(system_u:object_r:shutdown_etc_t,s0) | ||
20 | |||
21 | /lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
22 | |||
23 | /sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
24 | +/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
25 | |||
26 | /usr/lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
27 | |||
28 | /usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) | ||
29 | |||
30 | --- a/policy/modules/kernel/corecommands.fc | ||
31 | +++ b/policy/modules/kernel/corecommands.fc | ||
32 | @@ -8,10 +8,11 @@ | ||
33 | /bin/bash2 -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
34 | /bin/fish -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
35 | /bin/ksh.* -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
36 | /bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
37 | /bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0) | ||
38 | +/bin/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0) | ||
39 | /bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
40 | /bin/tcsh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
41 | /bin/yash -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
42 | /bin/zsh.* -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
43 | |||
44 | --- a/policy/modules/system/init.fc | ||
45 | +++ b/policy/modules/system/init.fc | ||
46 | @@ -30,10 +30,11 @@ ifdef(`distro_gentoo', ` | ||
47 | |||
48 | # | ||
49 | # /sbin | ||
50 | # | ||
51 | /sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) | ||
52 | +/sbin/init\.sysvinit -- gen_context(system_u:object_r:init_exec_t,s0) | ||
53 | # because nowadays, /sbin/init is often a symlink to /sbin/upstart | ||
54 | /sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) | ||
55 | |||
56 | ifdef(`distro_gentoo', ` | ||
57 | /sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0) | ||