commit: 5979e04f9cca8d0fe89f16e5bb3c7589ec3b5de1 Author: Krzysztof Nowicki <krissn <AT> op <DOT> pl> AuthorDate: Wed Feb 3 15:02:11 2021 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Mon Feb 15 19:49:24 2021 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=5979e04f
Allow systemd-tmpfilesd to set attributes of /var/lock Fixes: avc: denied { setattr } for pid= comm="systemd-tmpfile" name="lock" dev="tmpfs" ino= scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:var_lock_t:s0 tclass=dir Signed-off-by: Krzysztof Nowicki <krissn <AT> op.pl> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> policy/modules/system/systemd.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 08c26078..427ae600 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -1330,6 +1330,7 @@ files_relabel_var_lib_dirs(systemd_tmpfiles_t) files_relabelfrom_home(systemd_tmpfiles_t) files_relabelto_home(systemd_tmpfiles_t) files_relabelto_etc_dirs(systemd_tmpfiles_t) +files_setattr_lock_dirs(systemd_tmpfiles_t) # for /etc/mtab files_manage_etc_symlinks(systemd_tmpfiles_t)