Bug 722215

Summary: SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the 'setuid' capabilities.
Product: [Fedora] Fedora Reporter: James <james>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: braden, dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:3225e36ba547226c651a1a0cf85515847d4619c68cf26d594e6f7305054278d5
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-14 16:39:47 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 James 2011-07-14 16:21:10 UTC
SELinux is preventing /usr/libexec/abrt-hook-ccpp from using the 'setuid' capabilities.

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

If you believe that abrt-hook-ccpp should have the setuid 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                          (removed)
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                     (removed)
Platform                      Linux (removed) 2.6.38.8-34.(removed).fc15.x86_64 #1
                              SMP Mon Jun 27 21:42:17 BST 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Wed 13 Jul 2011 06:46:08 BST
Last Seen                     Thu 14 Jul 2011 17:19:15 BST
Local ID                      fc9c6ef5-0926-4064-938e-01b473b3b094

Raw Audit Messages
type=AVC msg=audit(1310660355.140:535): avc:  denied  { setuid } for  pid=936 comm="abrt-hook-ccpp" capability=7  scontext=system_u:system_r:abrt_helper_t:s0 tcontext=system_u:system_r:abrt_helper_t:s0 tclass=capability


type=SYSCALL msg=audit(1310660355.140:535): arch=x86_64 syscall=setresuid success=no exit=EPERM a0=ffffffffffffffff a1=1f4 a2=ffffffffffffffff a3=0 items=0 ppid=19815 pid=936 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=500 sgid=0 fsgid=500 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,setuid

audit2allow

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

audit2allow -R

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

Comment 1 Miroslav Grepl 2011-07-14 16:39:47 UTC

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