Bug 1372417 - SELinux is preventing abrt-hook-ccpp from 'sys_ptrace' accesses on the cap_userns Unknown.
Summary: SELinux is preventing abrt-hook-ccpp from 'sys_ptrace' accesses on the cap_us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:9ee0657824a337cf1fd75207836...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-01 15:54 UTC by Mikhail
Modified: 2016-10-14 19:34 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.13.1-219.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-14 19:34:45 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.