Bug 784975

Summary: SELinux is preventing /usr/sbin/abrtd from 'rmdir' accesses on the diretório ccpp-1327607159-21122.
Product: [Fedora] Fedora Reporter: viabsb <viabsb>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 13CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:72418fde3f9560d5c157ee7c04ef71ebceb66baf6d4c89c7cb32210eebb49417
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-26 22:52:26 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 viabsb 2012-01-26 19:53:01 UTC
SELinux is preventing /usr/sbin/abrtd from 'rmdir' accesses on the diretório ccpp-1327607159-21122.

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

If you believe that abrtd should be allowed rmdir access on the ccpp-1327607159-21122 directory 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:object_r:var_spool_t:s0
Target Objects                ccpp-1327607159-21122 [ dir ]
Source                        abrtd
Source Path                   /usr/sbin/abrtd
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           abrt-1.1.14-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-101.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.9-69.fc13.x86_64 #1 SMP
                              Tue May 3 09:23:03 UTC 2011 x86_64 x86_64
Alert Count                   8
First Seen                    Qua 25 Jan 2012 20:18:37 BRST
Last Seen                     Qui 26 Jan 2012 17:46:02 BRST
Local ID                      d479d30d-b21b-462b-afa7-4f48e5fe70ed

Raw Audit Messages
type=AVC msg=audit(1327607162.404:60075): avc:  denied  { rmdir } for  pid=2606 comm="abrtd" name="ccpp-1327607159-21122" dev=sda2 ino=789147 scontext=system_u:system_r:abrt_t:s0-s0:c0.c1023 tcontext=system_u:object_r:var_spool_t:s0 tclass=dir


type=SYSCALL msg=audit(1327607162.404:60075): arch=x86_64 syscall=rmdir success=yes exit=0 a0=16227b8 a1=81 a2=16280c0 a3=2d39353137303637 items=0 ppid=1 pid=2606 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,var_spool_t,dir,rmdir

audit2allow

#============= abrt_t ==============
allow abrt_t var_spool_t:dir rmdir;

audit2allow -R

#============= abrt_t ==============
allow abrt_t var_spool_t:dir rmdir;

Comment 1 Daniel Walsh 2012-01-26 22:52:26 UTC
restorecon -R -v /var/spool

Should fix this.  Not sure how it got mislabeled.