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 1274313

Summary: SELinux is preventing /usr/libexec/abrt-hook-ccpp from 'getattr' accesses on the file /usr/sbin/NetworkManager.
Product: [Fedora] Fedora Reporter: Michal Nowak <mnowak>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: antonio.montagnani, dominick.grift, dwalsh, lvrabec, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9b74f65ddeff3d5d03cdedc1f2ef7d360d83d576cd44211b3bc6c7fd9895a453;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-09 06:39:57 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 Michal Nowak 2015-10-22 13:17:53 UTC
Description of problem:
Started VM in Boxes.
SELinux is preventing /usr/libexec/abrt-hook-ccpp from 'getattr' accesses on the file /usr/sbin/NetworkManager.

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

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

Additional Information:
Source Context                system_u:system_r:abrt_dump_oops_t:s0
Target Context                system_u:object_r:NetworkManager_exec_t:s0
Target Objects                /usr/sbin/NetworkManager [ file ]
Source                        abrt-hook-ccpp
Source Path                   /usr/libexec/abrt-hook-ccpp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-addon-coredump-helper-2.6.1-5.fc22.x86_64
Target RPM Packages           NetworkManager-1.0.6-6.fc22.x86_64
Policy RPM                    selinux-policy-3.13.1-128.18.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.2.3-200.fc22.x86_64 #1 SMP Thu
                              Oct 8 03:23:55 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-10-22 15:15:31 CEST
Last Seen                     2015-10-22 15:15:31 CEST
Local ID                      2c9c101b-9659-4dc0-b3ea-640f59fbc3f9

Raw Audit Messages
type=AVC msg=audit(1445519731.374:2767): avc:  denied  { getattr } for  pid=17785 comm="abrt-hook-ccpp" path="/usr/sbin/NetworkManager" dev="dm-1" ino=134233 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:object_r:NetworkManager_exec_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1445519731.374:2767): arch=x86_64 syscall=stat success=no exit=EACCES a0=556ce2650530 a1=7fff01ed7ca0 a2=7fff01ed7ca0 a3=7aa items=0 ppid=17776 pid=17785 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrt-hook-ccpp exe=/usr/libexec/abrt-hook-ccpp subj=system_u:system_r:abrt_dump_oops_t:s0 key=(null)

Hash: abrt-hook-ccpp,abrt_dump_oops_t,NetworkManager_exec_t,file,getattr

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

Additional info:
reporter:       libreport-2.6.2
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Comment 1 antonio montagnani 2015-10-29 13:28:44 UTC
Description of problem:
no idea, just connecting

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

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.3-200.fc22.x86_64
type:           libreport

Comment 2 Miroslav Grepl 2015-11-09 06:39:57 UTC

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