1 |
commit: 309123918ff4990a52478e20c0679d9382de7267 |
2 |
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org> |
3 |
AuthorDate: Fri Sep 8 23:30:34 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 9 02:56:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=30912391 |
7 |
|
8 |
init: Move fc lines. |
9 |
|
10 |
policy/modules/system/init.fc | 13 +++++-------- |
11 |
1 file changed, 5 insertions(+), 8 deletions(-) |
12 |
|
13 |
diff --git a/policy/modules/system/init.fc b/policy/modules/system/init.fc |
14 |
index 8a8ce871..1637792a 100644 |
15 |
--- a/policy/modules/system/init.fc |
16 |
+++ b/policy/modules/system/init.fc |
17 |
@@ -34,14 +34,6 @@ ifdef(`distro_gentoo',` |
18 |
/usr/lib/systemd/ntp-units\.d -d gen_context(system_u:object_r:systemd_unit_t,s0) |
19 |
/usr/lib/systemd/system(/.*)? gen_context(system_u:object_r:systemd_unit_t,s0) |
20 |
|
21 |
-ifdef(`distro_gentoo', ` |
22 |
-/usr/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) |
23 |
-') |
24 |
- |
25 |
-ifdef(`distro_redhat',` |
26 |
-/usr/lib/systemd/rhel[^/]* -- gen_context(system_u:object_r:initrc_exec_t,s0) |
27 |
-') |
28 |
- |
29 |
/usr/libexec/dcc/start-.* -- gen_context(system_u:object_r:initrc_exec_t,s0) |
30 |
/usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0) |
31 |
|
32 |
@@ -50,9 +42,14 @@ ifdef(`distro_redhat',` |
33 |
/usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) |
34 |
|
35 |
ifdef(`distro_gentoo', ` |
36 |
+/usr/lib/rc/init\.d(/.*)? gen_context(system_u:object_r:initrc_state_t,s0) |
37 |
/usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0) |
38 |
') |
39 |
|
40 |
+ifdef(`distro_redhat',` |
41 |
+/usr/lib/systemd/rhel[^/]* -- gen_context(system_u:object_r:initrc_exec_t,s0) |
42 |
+') |
43 |
+ |
44 |
# |
45 |
# /var |
46 |
# |