From e9228b49bb791a1a9406a49ee4bd6cff26f9f2a6 Mon Sep 17 00:00:00 2001 From: Antoine Tenart Date: Mon, 5 Oct 2020 17:51:05 +0200 Subject: [PATCH] systemd: allow systemd-network to list the runtime directory Fixes: avc: denied { read } for pid=58 comm="systemd-network" name="/" dev="tmpfs" ino=652 scontext=system_u:system_r:systemd_networkd_t tcontext=system_u:object_r:var_run_t tclass=dir permissive=1 avc: denied { read } for pid=58 comm="systemd-network" name="/" dev="tmpfs" ino=652 scontext=system_u:system_r:systemd_networkd_t tcontext=system_u:object_r:var_run_t tclass=dir permissive=1 Signed-off-by: Antoine Tenart --- 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 074823bc4..515763686 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -787,6 +787,7 @@ dev_write_kmsg(systemd_networkd_t) files_read_etc_files(systemd_networkd_t) files_watch_runtime_dirs(systemd_networkd_t) files_watch_root_dirs(systemd_networkd_t) +files_list_runtime(systemd_networkd_t) fs_getattr_xattr_fs(systemd_networkd_t) auth_use_nsswitch(systemd_networkd_t)