From a71cc466fc033a5bae4003775d7a89a2ecf35ca1 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 12 Nov 2018 16:16:04 +0100 Subject: [PATCH] Allow minissdpd_t to create a unix_stream_socket ---- type=PROCTITLE msg=audit(12/11/18 15:37:06.293:231) : proctitle=/usr/sbin/minissdpd -i enp0s25 -i wlp3s0 -6 type=SYSCALL msg=audit(12/11/18 15:37:06.293:231) : arch=x86_64 syscall=listen success=yes exit=0 a0=0x7 a1=0x5 a2=0x6e a3=0x7ffdbca26c50 items=0 ppid=1 pid=1880 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=minissdpd exe=/usr/sbin/minissdpd subj=system_u:system_r:minissdpd_t:s0 key=(null) type=AVC msg=audit(12/11/18 15:37:06.293:231) : avc: denied { listen } for pid=1880 comm=minissdpd path=/run/minissdpd.sock scontext=system_u:system_r:minissdpd_t:s0 tcontext=system_u:system_r:minissdpd_t:s0 tclass=unix_stream_socket permissive=1 ---- type=PROCTITLE msg=audit(12/11/18 16:12:29.172:758) : proctitle=/usr/sbin/minissdpd -i enp0s25 -i wlp3s0 -6 type=SYSCALL msg=audit(12/11/18 16:12:29.172:758) : arch=x86_64 syscall=accept success=yes exit=8 a0=0x7 a1=0x0 a2=0x0 a3=0x0 items=0 ppid=1 pid=11460 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=minissdpd exe=/usr/sbin/minissdpd subj=system_u:system_r:minissdpd_t:s0 key=(null) type=AVC msg=audit(12/11/18 16:12:29.172:758) : avc: denied { accept } for pid=11460 comm=minissdpd path=/run/minissdpd.sock scontext=system_u:system_r:minissdpd_t:s0 tcontext=system_u:system_r:minissdpd_t:s0 tclass=unix_stream_socket permissive=1 --- policy/modules/services/minissdpd.te | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/services/minissdpd.te b/policy/modules/services/minissdpd.te index 86d0d54e5..65b1aed34 100644 --- a/policy/modules/services/minissdpd.te +++ b/policy/modules/services/minissdpd.te @@ -27,6 +27,7 @@ allow minissdpd_t self:capability { net_admin sys_module }; allow minissdpd_t self:netlink_route_socket r_netlink_socket_perms; allow minissdpd_t self:udp_socket create_socket_perms; allow minissdpd_t self:unix_dgram_socket create_socket_perms; +allow minissdpd_t self:unix_stream_socket create_stream_socket_perms; allow minissdpd_t minissdpd_var_run_t:file manage_file_perms; allow minissdpd_t minissdpd_var_run_t:sock_file manage_sock_file_perms; @@ -48,4 +49,4 @@ corenet_udp_sendrecv_ssdp_port(minissdpd_t) logging_send_syslog_msg(minissdpd_t) -miscfiles_read_localization(minissdpd_t) \ No newline at end of file +miscfiles_read_localization(minissdpd_t)