1 |
commit: 47d0b1e01912604be4f030997d4946439e80b1ce |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 17 03:46:26 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 22:56:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=47d0b1e0 |
7 |
|
8 |
Add transition on gentoo init_t to openrc |
9 |
|
10 |
Commit "init: replace call to init_domtrans_script" |
11 |
(be231899f5c7f0882843942624dd268f99bab141 in upstream repo) |
12 |
removed the call to init_domtrans_script which removed the openrc |
13 |
domtrans. This adds it back directly in the distro_gentoo block. |
14 |
|
15 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
16 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
17 |
|
18 |
policy/modules/system/init.te | 1 + |
19 |
1 file changed, 1 insertion(+) |
20 |
|
21 |
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te |
22 |
index b52eaddb..6b2654fa 100644 |
23 |
--- a/policy/modules/system/init.te |
24 |
+++ b/policy/modules/system/init.te |
25 |
@@ -120,6 +120,7 @@ init_unit_file(systemd_unit_t) |
26 |
ifdef(`distro_gentoo',` |
27 |
type rc_exec_t; |
28 |
domain_entry_file(initrc_t, rc_exec_t) |
29 |
+ domtrans_pattern(init_t, rc_exec_t, initrc_t) |
30 |
') |
31 |
|
32 |
ifdef(`enable_mls',` |