commit:     669856d8e7f852184036025d17574a021c502682
Author:     Jonathan Davies <jpds <AT> protonmail <DOT> com>
AuthorDate: Tue Apr  6 10:57:21 2021 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sun Nov 21 23:14:37 2021 +0000
URL:        
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=669856d8

init.te: Allow init to read tmpfs files.

Closes: https://github.com/perfinion/hardened-refpolicy/pull/13
Signed-off-by: Jonathan Davies <jpds <AT> protonmail.com>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>

 policy/modules/system/init.te | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/system/init.te b/policy/modules/system/init.te
index 983d4fbb..9a3affbb 100644
--- a/policy/modules/system/init.te
+++ b/policy/modules/system/init.te
@@ -901,6 +901,7 @@ ifdef(`distro_gentoo',`
        # openrc uses tmpfs for its state data
        fs_tmpfs_filetrans(initrc_t, initrc_state_t, { dir file fifo_file 
lnk_file })
        files_mountpoint(initrc_state_t)
+       fs_read_tmpfs_files(init_t)
 
        # init scripts touch this
        clock_dontaudit_write_adjtime(initrc_t)

Reply via email to