Description of problem: systemctl start cups-lpd.socket systemd needs to be able to open and listen on the lpr socket (tcp port 515) To fix, add this rule: allow init_t cupsd_lpd_t:tcp_socket { bind create listen setopt }; SELinux is preventing systemd from 'create' accesses on the tcp_socket port None. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemd should be allowed create access on the port None tcp_socket by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # ausearch -c 'systemd' --raw | audit2allow -M my-systemd # semodule -X 300 -i my-systemd.pp Additional Information: Source Context system_u:system_r:init_t:s0 Target Context system_u:system_r:cupsd_lpd_t:s0 Target Objects port None [ tcp_socket ] Source systemd Source Path systemd Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-283.21.fc27.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.14.11-300.fc27.i686+PAE #1 SMP Wed Jan 3 14:14:43 UTC 2018 i686 i686 Alert Count 2 First Seen 2018-01-07 13:18:40 CET Last Seen 2018-01-07 13:35:08 CET Local ID 718681e6-e0da-4337-ba8a-f0960f53effe Raw Audit Messages type=AVC msg=audit(1515328508.799:232): avc: denied { create } for pid=1 comm="systemd" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:cupsd_lpd_t:s0 tclass=tcp_socket permissive=1 Hash: systemd,init_t,cupsd_lpd_t,tcp_socket,create Version-Release number of selected component: selinux-policy-3.13.1-283.21.fc27.noarch Additional info: component: selinux-policy reporter: libreport-2.9.3 hashmarkername: setroubleshoot kernel: 4.14.11-300.fc27.i686+PAE type: libreport
selinux-policy-3.13.1-283.27.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-32ebae3424
selinux-policy-3.13.1-283.27.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-32ebae3424
Issue not fixed. commit aa5973b6e2c3265bae9389dc413e4842725f18b0 allows socket activation via a unix socket. Needed is socket activation via TCP socket port 515.
Installed packages selinux-policy.noarch 3.13.1-283.27.fc27 @updates-testing selinux-policy-devel.noarch 3.13.1-283.27.fc27 @updates-testing selinux-policy-doc.noarch 3.13.1-283.27.fc27 @updates-testing selinux-policy-targeted.noarch 3.13.1-283.27.fc27 @updates-testing Selinux issues type=AVC msg=audit(1520654159.008:218): avc: denied { create } for pid=1 comm="systemd" scontext=s ystem_u:system_r:init_t:s0 tcontext=system_u:system_r:cupsd_lpd_t:s0 tclass=tcp_socket permissive=1 type=AVC msg=audit(1520654159.008:219): avc: denied { setopt } for pid=1 comm="systemd" scontext=s ystem_u:system_r:init_t:s0 tcontext=system_u:system_r:cupsd_lpd_t:s0 tclass=tcp_socket permissive=1 type=AVC msg=audit(1520654159.008:220): avc: denied { bind } for pid=1 comm="systemd" scontext=sys tem_u:system_r:init_t:s0 tcontext=system_u:system_r:cupsd_lpd_t:s0 tclass=tcp_socket permissive=1 type=AVC msg=audit(1520654159.009:221): avc: denied { listen } for pid=1 comm="systemd" lport=515 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:cupsd_lpd_t:s0 tclass=tcp_socket perm issive=1
selinux-policy-3.13.1-283.28.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-32ebae3424
selinux-policy-3.13.1-283.28.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-32ebae3424
Issue not fixed. No change between selinux-policy-3.13.1-283.27.fc27 and selinux-policy-3.13.1-283.28.fc27.
selinux-policy-3.13.1-283.28.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.