Bug 692282

Summary: SELinux is preventing /usr/sbin/abrtd from using the 'fowner' capabilities.
Product: [Fedora] Fedora Reporter: Steve Tyler <stephent98>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:6523a953a76f2ee50fc1b4c2fd954ce8c91f2fcff48cf5e7215295663b9e9ac4
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-17 15:57:28 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 Steve Tyler 2011-03-30 22:27:51 UTC
SELinux is preventing /usr/sbin/abrtd from using the 'fowner' capabilities.

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

If you believe that abrtd should have the fowner 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 abrtd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Context                system_u:system_r:abrt_t:s0-s0:c0.c1023
Target Objects                Unknown [ capability ]
Source                        abrtd
Source Path                   /usr/sbin/abrtd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           abrt-2.0.0-2.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.38.2-8.fc15.x86_64 #1 SMP Mon Mar 28
                              02:14:51 UTC 2011 x86_64 x86_64
Alert Count                   4
First Seen                    Wed 30 Mar 2011 03:25:13 PM PDT
Last Seen                     Wed 30 Mar 2011 03:25:13 PM PDT
Local ID                      68f70011-4f18-424d-9381-0d87580d91f1

Raw Audit Messages
type=AVC msg=audit(1301523913.931:97): avc:  denied  { fowner } for  pid=1046 comm="abrtd" capability=3  scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tclass=capability


type=SYSCALL msg=audit(1301523913.931:97): arch=x86_64 syscall=chmod success=no exit=EPERM a0=1d5fbb0 a1=1b4 a2=8000 a3=2d30332d33302d31 items=0 ppid=1 pid=1046 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=abrtd exe=/usr/sbin/abrtd subj=system_u:system_r:abrt_t:s0-s0:c0.c1023 key=(null)

Hash: abrtd,abrt_t,abrt_t,capability,fowner

audit2allow

#============= abrt_t ==============
allow abrt_t self:capability fowner;

audit2allow -R

#============= abrt_t ==============
allow abrt_t self:capability fowner;

Comment 1 Miroslav Grepl 2011-03-31 11:33:03 UTC
I thought we added this.

Fixed in selinux-policy-3.9.16-7.fc15