From 664d932c0fa222014856108c2eccdee30e4c79a0 Mon Sep 17 00:00:00 2001 From: Dave Sugar Date: Wed, 6 Jun 2018 10:25:09 -0400 Subject: [PATCH] systemd-resolved uses notify to indicate status type=AVC msg=audit(1528207926.219:1609): avc: denied { write } for pid=2689 comm="systemd-resolve" name="notify" dev="tmpfs" ino=6277 scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:object_r:init_var_run_t:s0 tclass=sock_file type=AVC msg=audit(1528208016.448:1702): avc: denied { sendto } for pid=2689 comm="systemd-resolve" path="/run/systemd/notify" scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_dgram_socket Signed-off-by: Dave Sugar --- policy/modules/system/systemd.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te index 60651a9e2..cf2c3296d 100644 --- a/policy/modules/system/systemd.te +++ b/policy/modules/system/systemd.te @@ -844,6 +844,7 @@ init_pid_filetrans(systemd_resolved_t, systemd_resolved_var_run_t, dir) dev_read_sysfs(systemd_resolved_t) +kernel_dgram_send(systemd_resolved_t) kernel_read_crypto_sysctls(systemd_resolved_t) kernel_read_kernel_sysctls(systemd_resolved_t) kernel_read_net_sysctls(systemd_resolved_t) @@ -855,6 +856,8 @@ corenet_udp_bind_llmnr_port(systemd_resolved_t) auth_use_nsswitch(systemd_resolved_t) +init_dgram_send(systemd_resolved_t) + seutil_read_file_contexts(systemd_resolved_t) systemd_log_parse_environment(systemd_resolved_t)