1 |
commit: e5553f37a167cc7205e8550025fd2501ba7ed8b3 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 17 03:46:22 2020 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 22:55:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=e5553f37 |
7 |
|
8 |
getty: allow watching file /run/agetty.reload |
9 |
|
10 |
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 |
11 |
|
12 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
13 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
14 |
|
15 |
policy/modules/system/getty.te | 1 + |
16 |
1 file changed, 1 insertion(+) |
17 |
|
18 |
diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te |
19 |
index ce9e4ded..f9514c77 100644 |
20 |
--- a/policy/modules/system/getty.te |
21 |
+++ b/policy/modules/system/getty.te |
22 |
@@ -47,6 +47,7 @@ allow getty_t getty_log_t:file { append_file_perms create_file_perms setattr_fil |
23 |
logging_log_filetrans(getty_t, getty_log_t, file) |
24 |
|
25 |
allow getty_t getty_runtime_t:dir watch; |
26 |
+allow getty_t getty_runtime_t:file watch; |
27 |
manage_files_pattern(getty_t, getty_runtime_t, getty_runtime_t) |
28 |
files_runtime_filetrans(getty_t, getty_runtime_t, file) |