1 |
commit: b84ca9b9648ba7f073ad7513c4b610b7f0dfbdfc |
2 |
Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> |
3 |
AuthorDate: Mon Sep 7 15:08:12 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 21:14:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b84ca9b9 |
7 |
|
8 |
corecommands: add entry for Busybox shell |
9 |
|
10 |
Fixes: |
11 |
|
12 |
vc: denied { execute } for pid=87 comm="login" name="sh" dev="vda" |
13 |
ino=408 scontext=system_u:system_r:local_login_t |
14 |
tcontext=system_u:object_r:bin_t tclass=file permissive=1 |
15 |
|
16 |
Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> |
17 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
18 |
|
19 |
policy/modules/kernel/corecommands.fc | 1 + |
20 |
1 file changed, 1 insertion(+) |
21 |
|
22 |
diff --git a/policy/modules/kernel/corecommands.fc b/policy/modules/kernel/corecommands.fc |
23 |
index 5ced3c67..07a09873 100644 |
24 |
--- a/policy/modules/kernel/corecommands.fc |
25 |
+++ b/policy/modules/kernel/corecommands.fc |
26 |
@@ -157,6 +157,7 @@ ifdef(`distro_gentoo',` |
27 |
/usr/bin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0) |
28 |
/usr/bin/scponly -- gen_context(system_u:object_r:shell_exec_t,s0) |
29 |
/usr/bin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0) |
30 |
+/usr/bin/sh -- gen_context(system_u:object_r:shell_exec_t,s0) |
31 |
/usr/bin/smrsh -- gen_context(system_u:object_r:shell_exec_t,s0) |
32 |
/usr/bin/tcsh -- gen_context(system_u:object_r:shell_exec_t,s0) |
33 |
/usr/bin/yash -- gen_context(system_u:object_r:shell_exec_t,s0) |