commit: e5553f37a167cc7205e8550025fd2501ba7ed8b3 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> AuthorDate: Tue Nov 17 03:46:22 2020 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sat Nov 28 22:55:51 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e5553f37
getty: allow watching file /run/agetty.reload avc: denied { watch } for pid=2485 comm="agetty" path="/run/agetty.reload" dev="tmpfs" ino=22050 scontext=system_u:system_r:getty_t:s0 tcontext=system_u:object_r:getty_runtime_t:s0 tclass=file permissive=0 Signed-off-by: Jason Zaman <jason <AT> perfinion.com> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> policy/modules/system/getty.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te index ce9e4ded..f9514c77 100644 --- a/policy/modules/system/getty.te +++ b/policy/modules/system/getty.te @@ -47,6 +47,7 @@ allow getty_t getty_log_t:file { append_file_perms create_file_perms setattr_fil logging_log_filetrans(getty_t, getty_log_t, file) allow getty_t getty_runtime_t:dir watch; +allow getty_t getty_runtime_t:file watch; manage_files_pattern(getty_t, getty_runtime_t, getty_runtime_t) files_runtime_filetrans(getty_t, getty_runtime_t, file)