Skip to content

Commit 06b2795

Browse files
committed
systemd: allow systemd-resolve to watch /run/systemd dir
Fixes: avc: denied { watch } for pid=283 comm="systemd-resolve" path="/run/systemd" dev="tmpfs" ino=2 scontext=system_u:system_r:systemd_resolved_t tcontext=system_u:object_r:init_runtime_t tclass=dir permissive=0 Signed-off-by: Yi Zhao <[email protected]>
1 parent 395d07f commit 06b2795

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

policy/modules/system/systemd.te

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,6 +1767,7 @@ fs_search_ramfs(systemd_resolved_t)
17671767
fs_watch_memory_pressure(systemd_resolved_t)
17681768

17691769
init_dgram_send(systemd_resolved_t)
1770+
init_watch_runtime_dirs(systemd_resolved_t)
17701771

17711772
miscfiles_read_generic_certs(systemd_resolved_t)
17721773

0 commit comments

Comments
 (0)