From: dsugar@tresys.com (Dave Sugar) Date: Wed, 6 Jun 2018 10:25:09 -0400 Subject: [refpolicy] [PATCH 4/4] systemd-resolved uses notify to indicate status In-Reply-To: <20180606142509.30199-1-dsugar@tresys.com> References: <20180606142509.30199-1-dsugar@tresys.com> Message-ID: <20180606142509.30199-5-dsugar@tresys.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com 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 60651a9e..cf2c3296 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) -- 2.14.3