diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch b/recipes-security/refpolicy/refpolicy/0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch new file mode 100644 index 0000000..8047863 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0016-fc-corecommands-apply-policy-to-nologin-alternatives.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 788d2c125f18dce9e0871fb260b4a0c394b9db53 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Fri, 15 Nov 2019 10:21:51 +0800 | ||
4 | Subject: [PATCH] fc/corecommands: apply policy to nologin alternatives | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
9 | --- | ||
10 | policy/modules/kernel/corecommands.fc | 2 ++ | ||
11 | 1 file changed, 2 insertions(+) | ||
12 | |||
13 | diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc | ||
14 | index 1edc035f3..258d97c3c 100644 | ||
15 | --- a/policy/modules/kernel/corecommands.fc | ||
16 | +++ b/policy/modules/kernel/corecommands.fc | ||
17 | @@ -308,6 +308,8 @@ ifdef(`distro_debian',` | ||
18 | /usr/sbin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0) | ||
19 | /usr/sbin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0) | ||
20 | /usr/sbin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
21 | +/usr/sbin/nologin\.shadow -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
22 | +/usr/sbin/nologin\.util-linux -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
23 | /usr/sbin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
24 | /usr/sbin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
25 | /usr/sbin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0) | ||
26 | -- | ||
27 | 2.25.1 | ||
28 | |||