1 |
commit: 42bae906477136079a1599048a431574d03643fa |
2 |
Author: Guido Trentalancia <guido <AT> trentalancia <DOT> net> |
3 |
AuthorDate: Sat Apr 29 18:17:30 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 7 15:53:18 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=42bae906 |
7 |
|
8 |
init: smoother system boot |
9 |
|
10 |
Improve the initrc domain within the init module with some permissions |
11 |
needed for a smoother boot. |
12 |
|
13 |
Let the iptables init scripts read the iptables configuration. |
14 |
|
15 |
Signed-off-by: Guido Trentalancia <guido <AT> trentalancia.net> |
16 |
|
17 |
policy/modules/system/init.te | 6 ++++++ |
18 |
1 file changed, 6 insertions(+) |
19 |
|
20 |
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te |
21 |
index 07238399..a01b5093 100644 |
22 |
--- a/policy/modules/system/init.te |
23 |
+++ b/policy/modules/system/init.te |
24 |
@@ -487,6 +487,7 @@ kernel_clear_ring_buffer(initrc_t) |
25 |
kernel_get_sysvipc_info(initrc_t) |
26 |
kernel_read_all_sysctls(initrc_t) |
27 |
kernel_rw_all_sysctls(initrc_t) |
28 |
+kernel_use_fds(initrc_t) |
29 |
# for lsof which is used by alsa shutdown: |
30 |
kernel_dontaudit_getattr_message_if(initrc_t) |
31 |
# cjp: not sure why these are here; should use mount policy |
32 |
@@ -494,6 +495,7 @@ kernel_list_unlabeled(initrc_t) |
33 |
kernel_mounton_unlabeled_dirs(initrc_t) |
34 |
|
35 |
files_create_lock_dirs(initrc_t) |
36 |
+files_manage_all_locks(initrc_t) |
37 |
files_pid_filetrans_lock_dir(initrc_t, "lock") |
38 |
files_read_kernel_symbol_table(initrc_t) |
39 |
files_setattr_lock_dirs(initrc_t) |
40 |
@@ -1116,6 +1118,10 @@ optional_policy(` |
41 |
') |
42 |
|
43 |
optional_policy(` |
44 |
+ iptables_read_config(initrc_t) |
45 |
+') |
46 |
+ |
47 |
+optional_policy(` |
48 |
iscsi_stream_connect(initrc_t) |
49 |
iscsi_read_lib_files(initrc_t) |
50 |
') |