1 |
commit: 669856d8e7f852184036025d17574a021c502682 |
2 |
Author: Jonathan Davies <jpds <AT> protonmail <DOT> com> |
3 |
AuthorDate: Tue Apr 6 10:57:21 2021 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 21 23:14:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=669856d8 |
7 |
|
8 |
init.te: Allow init to read tmpfs files. |
9 |
|
10 |
Closes: https://github.com/perfinion/hardened-refpolicy/pull/13 |
11 |
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com> |
12 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
13 |
|
14 |
policy/modules/system/init.te | 1 + |
15 |
1 file changed, 1 insertion(+) |
16 |
|
17 |
diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te |
18 |
index 983d4fbb..9a3affbb 100644 |
19 |
--- a/policy/modules/system/init.te |
20 |
+++ b/policy/modules/system/init.te |
21 |
@@ -901,6 +901,7 @@ ifdef(`distro_gentoo',` |
22 |
# openrc uses tmpfs for its state data |
23 |
fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file lnk_file }) |
24 |
files_mountpoint(initrc_state_t) |
25 |
+ fs_read_tmpfs_files(init_t) |
26 |
|
27 |
# init scripts touch this |
28 |
clock_dontaudit_write_adjtime(initrc_t) |