Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1615492

Summary: nsd daemon needs access to remove/add socket file /run/nsd/nsd.ctl
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: dwalsh, lvrabec, mgrepl, plautrba, pmoore
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.14.2-34.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-12 03:00:31 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 Paul Wouters 2018-08-13 17:38:24 UTC
Description of problem:
nsd up to 4.1.23 uses a TLS mechanism to talk to its daemon. As of 4.1.24 it also supports a unix domain socket in /run/nsd/nsd.ctl.

The daemon /usr/sbin/nsd needs to be able to create/delete it. It now shows:

type=AVC msg=audit(1534181431.633:296959): avc:  denied  { create } for  pid=14918 comm="nsd" name="nsd.ctl" scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file


type=SYSCALL msg=audit(1534181431.633:296959): arch=x86_64 syscall=bind success=yes exit=0 a0=8 a1=7ffe897a0a00 a2=6e a3=8 items=0 ppid=1 pid=14918 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=nsd exe=/usr/sbin/nsd subj=system_u:system_r:nsd_t:s0 key=(null)

Hash: nsd,nsd_t,var_run_t,sock_file,create


type=AVC msg=audit(1534181431.634:296960): avc:  denied  { setattr } for  pid=14918 comm="nsd" name="nsd.ctl" dev="tmpfs" ino=332978837 scontext=system_u:system_r:nsd_t:s0 tcontext=system_u:object_r:var_run_t:s0 tclass=sock_file


Hash: nsd,nsd_t,var_run_t,sock_file,setattr

Comment 1 Paul Wouters 2018-08-13 17:39:36 UTC
same would apply to epel

Comment 2 Jan Kurik 2018-08-14 08:36:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 3 Fedora Update System 2018-09-11 12:53:52 UTC
selinux-policy-3.14.2-34.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-db240a1726

Comment 4 Fedora Update System 2018-09-12 03:00:31 UTC
selinux-policy-3.14.2-34.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.