Bug 1147608

Summary: SELinux is preventing unbound-control from 'write' accesses on the file /run/dnssec-trigger/lock.
Product: [Fedora] Fedora Reporter: Moez Roy <moez.roy>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, laurent.rineau__fedora, lmacken, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:de983f9e38eb5b1f7314d2e5a5ae1dce941a71ae494fc1f1099b9ea4ef52bfd7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-13 14:05:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Moez Roy 2014-09-29 14:54:12 UTC
Description of problem:
SELinux is preventing unbound-control from 'write' accesses on the file /run/dnssec-trigger/lock.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that unbound-control should be allowed write access on the lock file 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:
# grep unbound-control /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:named_t:s0
Target Context                system_u:object_r:dnssec_trigger_var_run_t:s0
Target Objects                /run/dnssec-trigger/lock [ file ]
Source                        unbound-control
Source Path                   unbound-control
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-83.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.17.0-0.rc6.git2.1.fc22.x86_64 #1
                              SMP Wed Sep 24 14:05:08 UTC 2014 x86_64 x86_64
Alert Count                   16
First Seen                    2014-09-29 07:42:47 PDT
Last Seen                     2014-09-29 07:42:49 PDT
Local ID                      4940a4a2-134f-42b3-9ff1-f1a00fb71688

Raw Audit Messages
type=AVC msg=audit(1412001769.141:489): avc:  denied  { write } for  pid=2575 comm="unbound-control" path="/run/dnssec-trigger/lock" dev="tmpfs" ino=34726 scontext=system_u:system_r:named_t:s0 tcontext=system_u:object_r:dnssec_trigger_var_run_t:s0 tclass=file permissive=0


Hash: unbound-control,named_t,dnssec_trigger_var_run_t,file,write

Version-Release number of selected component:
selinux-policy-3.13.1-83.fc22.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.17.0-0.rc6.git2.1.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2014-10-13 14:05:42 UTC

*** This bug has been marked as a duplicate of bug 1147705 ***

Comment 2 Lukas Vrabec 2014-10-29 10:18:22 UTC
*** Bug 1158117 has been marked as a duplicate of this bug. ***