Bug 718474 - SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the sys_ptrace capability
Summary: SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the sys_ptrace c...
Keywords:
Status: CLOSED DUPLICATE of bug 718347
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Moskovcak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-03 11:09 UTC by Michael Schwendt
Modified: 2015-02-01 22:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-03 11:10:57 UTC
Type: ---


Attachments (Terms of Use)

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 ***


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