Bug 1147607

Summary: SELinux is preventing sh from 'getattr' accesses on the file /usr/sbin/unbound-control.
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, lvrabec, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:662dd436dad618d0c1957375aff59bad165c6450e8f68c05ed1c95e150b417a4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-13 14:14:37 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:53:32 UTC
Description of problem:
SELinux is preventing sh from 'getattr' accesses on the file /usr/sbin/unbound-control.

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

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

Additional Information:
Source Context                system_u:system_r:dnssec_trigger_t:s0
Target Context                system_u:object_r:named_exec_t:s0
Target Objects                /usr/sbin/unbound-control [ file ]
Source                        sh
Source Path                   sh
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           unbound-1.4.22-6.fc22.x86_64
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                   1
First Seen                    2014-09-29 07:42:48 PDT
Last Seen                     2014-09-29 07:42:48 PDT
Local ID                      12fe8a53-b101-454d-b052-ca59deb9f6da

Raw Audit Messages
type=AVC msg=audit(1412001768.59:479): avc:  denied  { getattr } for  pid=2512 comm="sh" path="/usr/sbin/unbound-control" dev="sda3" ino=1580219 scontext=system_u:system_r:dnssec_trigger_t:s0 tcontext=system_u:object_r:named_exec_t:s0 tclass=file permissive=0


Hash: sh,dnssec_trigger_t,named_exec_t,file,getattr

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

Potential duplicate: bug 1146109

Comment 1 Miroslav Grepl 2014-10-13 14:14:37 UTC

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