Bug 1285047

Summary: SELinux is preventing abrt-hook-ccpp from write, open access on the file /root/core.10097.
Product: [Fedora] Fedora Reporter: Harshal <khanderia.h>
Component: abrtAssignee: abrt <abrt-devel-list>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: abrt-devel-list, dominick.grift, dvlasenk, dwalsh, iprikryl, jfilak, lvrabec, mgrepl, mhabrnal, michal.toman, mmilata, phelia, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:31132d0ec4a1f6e3c78881b8cdf128adb2296c047e2cbaa16b2a15b590ff90ba;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-08 08:22:14 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 Harshal 2015-11-24 18:09:46 UTC
Description of problem:
SELinux is preventing abrt-hook-ccpp from write, open access on the file /root/core.10097.

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

If you believe that abrt-hook-ccpp should be allowed write open access on the core.10097 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                unconfined_u:object_r:admin_home_t:s0
Target Objects                /root/core.10097 [ file ]
Source                        abrt-hook-ccpp
Source Path                   abrt-hook-ccpp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-128.18.fc22.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.2.5-201.fc22.x86_64 #1 SMP Wed
                              Oct 28 20:00:23 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-11-23 22:35:53 IST
Last Seen                     2015-11-23 22:35:53 IST
Local ID                      7589f789-db2b-4c5a-bed4-30886cff6b43

Raw Audit Messages
type=AVC msg=audit(1448298353.775:316): avc:  denied  { write open } for  pid=10098 comm="abrt-hook-ccpp" path="/root/core.10097" dev="dm-1" ino=1445941 scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=1


Hash: abrt-hook-ccpp,abrt_dump_oops_t,admin_home_t,file,write,open

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.5-201.fc22.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2016-01-21 15:02:15 UTC
*** Bug 1285048 has been marked as a duplicate of this bug. ***

Comment 2 Jakub Filak 2016-02-08 08:22:14 UTC
I believe this bug is a duplicate of bug #1284632

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