Bug 718474

Summary: SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the sys_ptrace capability
Product: [Fedora] Fedora Reporter: Michael Schwendt <bugs.michael>
Component: abrtAssignee: Jiri Moskovcak <jmoskovc>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: anton, dfediuck, dvlasenk, iprikryl, jmoskovc, kklic, mtoman, npajkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-03 11:10: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:

Description Michael Schwendt 2011-07-03 11:09:23 UTC
$ rpm -q abrt
abrt-2.0.3-1.fc15.x86_64
selinux-policy-3.9.16-32.fc15.noarch

ABRT doesn't pop up for crashes anymore and also fails to catch backtraces (i.e. running its GUI manually it doesn't display any bugs). Instead, I only get an sealert warning:

[...]

SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the sys_ptrace capability.

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

If you believe that abrt-hook-ccpp should have the sys_ptrace capability 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_helper_t:s0
Target Context                system_u:system_r:abrt_helper_t:s0
Target Objects                Unknown [ capability ]
Source                        abrt-hook-ccpp
Source Path                   /usr/libexec/abrt-hook-ccpp
Port                          <Unknown>
Host                          localhost.localdomain
Source RPM Packages           abrt-addon-ccpp-2.0.3-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-32.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     localhost.localdomain
Platform                      Linux localhost.localdomain
                              2.6.38.8-32.fc15.x86_64 #1 SMP Mon Jun 13 19:49:05
                              UTC 2011 x86_64 x86_64
Alert Count                   14
First Seen                    Sat 02 Jul 2011 06:25:48 PM CEST
Last Seen                     Sun 03 Jul 2011 01:01:17 PM CEST
Local ID                      d112eba3-950e-4ce1-8991-d3643160a9d8

Raw Audit Messages
type=AVC msg=audit(1309690877.674:159): avc:  denied  { sys_ptrace } for  pid=9495 comm="abrt-hook-ccpp" capability=19  scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:system_r:abrt_helper_t:s0 tclass=capability


type=SYSCALL msg=audit(1309690877.674:159): arch=x86_64 syscall=readlink success=no exit=EACCES a0=7fffcd840540 a1=7fffcd83d1f0 a2=1000 a3=22 items=0 ppid=46 pid=9495 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_helper_t:s0 key=(null)

Hash: abrt-hook-ccpp,abrt_helper_t,abrt_helper_t,capability,sys_ptrace

audit2allow

#============= abrt_helper_t ==============
allow abrt_helper_t self:capability sys_ptrace;

audit2allow -R

#============= abrt_helper_t ==============
allow abrt_helper_t self:capability sys_ptrace;

Comment 1 Michael Schwendt 2011-07-03 11:10:57 UTC

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