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 1372417

Summary: SELinux is preventing abrt-hook-ccpp from 'sys_ptrace' accesses on the cap_userns Unknown.
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, dzrudy, lvrabec, mgrepl, plautrba, scampa.giovanni, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:9ee0657824a337cf1fd752078363dd2c4d0be995b0b3357592821cd3fe0b5c76;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-219.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-14 19:34:45 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 Mikhail 2016-09-01 15:54:01 UTC
Description of problem:
SELinux is preventing abrt-hook-ccpp from 'sys_ptrace' accesses on the cap_userns Unknown.

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

If you believe that abrt-hook-ccpp should be allowed sys_ptrace access on the Unknown cap_userns 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:
# ausearch -c 'abrt-hook-ccpp' --raw | audit2allow -M my-abrthookccpp
# semodule -X 300 -i my-abrthookccpp.pp

Additional Information:
Source Context                system_u:system_r:abrt_dump_oops_t:s0
Target Context                system_u:system_r:abrt_dump_oops_t:s0
Target Objects                Unknown [ cap_userns ]
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-211.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed)
                              4.8.0-0.rc4.git0.1.fc25.x86_64+debug #1 SMP Mon
                              Aug 29 19:06:48 UTC 2016 x86_64 x86_64
Alert Count                   24
First Seen                    2016-08-31 02:14:33 YEKT
Last Seen                     2016-09-01 20:40:23 YEKT
Local ID                      1089525d-6dcf-48c6-b5b5-ba1e6ec7218b

Raw Audit Messages
type=AVC msg=audit(1472744423.291:253): avc:  denied  { sys_ptrace } for  pid=10172 comm="abrt-hook-ccpp" capability=19  scontext=system_u:system_r:abrt_dump_oops_t:s0 tcontext=system_u:system_r:abrt_dump_oops_t:s0 tclass=cap_userns permissive=0


Hash: abrt-hook-ccpp,abrt_dump_oops_t,abrt_dump_oops_t,cap_userns,sys_ptrace

Version-Release number of selected component:
selinux-policy-3.13.1-211.fc25.noarch

Additional info:
reporter:       libreport-2.7.2
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc4.git0.1.fc25.x86_64+debug
type:           libreport

Potential duplicate: bug 1370160

Comment 1 Dawid Zamirski 2016-09-21 13:31:45 UTC
Description of problem:
attempted to start DRMed video stream with new Firefox 49


Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64
type:           libreport

Comment 2 Mikhail 2016-09-22 15:23:52 UTC
Description of problem:
Crashed Google Chrome

Version-Release number of selected component:
selinux-policy-3.13.1-214.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64+debug
type:           libreport

Comment 3 Mikhail 2016-09-24 13:32:54 UTC
Description of problem:
This alert occured when crashed google chrome tab

Version-Release number of selected component:
selinux-policy-3.13.1-214.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64+debug
type:           libreport

Comment 4 Mikhail 2016-09-25 08:47:27 UTC
Description of problem:
Google chrome crashed

Version-Release number of selected component:
selinux-policy-3.13.1-215.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64+debug
type:           libreport

Comment 5 Giovanni Campagna 2016-09-26 22:12:12 UTC
Description of problem:
SELinux is complaining that abrt cannot ptrace a process in an userns. I would expect abrt found a crashdump from a flatpak.
abrt should not try to extract traces from flatpaks (until we have fedora-provided flatpaks), but also SELinux should not complain when abrt does its job

Version-Release number of selected component:
selinux-policy-3.13.1-214.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc7.git0.1.fc25.x86_64
type:           libreport

Comment 6 Fedora Admin XMLRPC Client 2016-09-27 15:04:25 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Mikhail 2016-09-28 14:48:29 UTC
Description of problem:
This alert occured when Chrome crashed

Version-Release number of selected component:
selinux-policy-3.13.1-215.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.0-0.rc8.git0.1.fc25.x86_64+debug
type:           libreport

Comment 8 Fedora Update System 2016-10-12 01:53:57 UTC
selinux-policy-3.13.1-219.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-552be55062

Comment 9 Fedora Update System 2016-10-14 19:34:45 UTC
selinux-policy-3.13.1-219.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.