Bug 1543049

Summary: SELinux does not allow systemd to create a UNIX socket
Product: [Fedora] Fedora Reporter: Nicki Křížek <nicki>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-283.26.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-12 09:15:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nicki Křížek 2018-02-07 15:56:28 UTC
Description of problem:
When using systemd to create a UNIX socket while starting a service (via Sockets= in service file), selinux doesn't allow the UNIX socket to be created.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-283.24.fc27.noarch

How reproducible:
always

Expected results:
selinux should allow systemd to create and use a UNIX socket


Additional info:
audit2allow output:

#============= init_t ==============
allow init_t unconfined_service_t:unix_stream_socket { bind create listen setopt };