commit: f901a2a92def4f0c956c9ddc43bac2109a5f1348 Author: Sven Vermeulen <sven.vermeulen <AT> siphos <DOT> be> AuthorDate: Thu Aug 7 15:31:11 2014 +0000 Commit: Jason Zaman <gentoo <AT> perfinion <DOT> com> CommitDate: Fri Aug 8 14:49:47 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/hardened-refpolicy.git;a=commit;h=f901a2a9
Give kmod access to tmpfiles Upon boot, the kmod application (running as insmod_t) can generate a tmpfiles configuration file to allow tmpfiles to relabel and set the required static device nodes for the kernel: kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf This requires the insmod_t domain to have create/write privileges towards the /run/tmpfiles.d location. Signed-off-by: Jason Zaman <jason <AT> perfinion.com> --- policy/modules/system/modutils.te | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/policy/modules/system/modutils.te b/policy/modules/system/modutils.te index f52e72a..419b826 100644 --- a/policy/modules/system/modutils.te +++ b/policy/modules/system/modutils.te @@ -232,6 +232,11 @@ optional_policy(` ') optional_policy(` + tmpfiles_create_var_run_files(insmod_t) + tmpfiles_write_var_run_files(insmod_t) +') + +optional_policy(` unconfined_domain(insmod_t) unconfined_dontaudit_rw_pipes(insmod_t) ')