Skip to content

Commit e0477ab

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

policy/modules/services/ntp.te

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ ifdef(`init_systemd',`
157157
allow ntpd_t self:capability { fowner setpcap };
158158
init_read_state(ntpd_t)
159159
init_reload(ntpd_t)
160+
init_watch_runtime_dirs(ntpd_t)
160161
fs_watch_memory_pressure(ntpd_t)
161162

162163
# for /var/lib/systemd/clock

0 commit comments

Comments
 (0)