Bug 839592

Summary: SELinux is preventing /usr/sbin/tmpwatch from 'rmdir' accesses on the directory kdecache-shooshoo.
Product: [Fedora] Fedora Reporter: kevingrimes324
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:a650b331599d56eabedfc62185c9ffe3bd152c1ef5504e46b568780308bc2c01
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-13 09:38: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:
Embargoed:

Description kevingrimes324 2012-07-12 11:52:54 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-4.fc16.i686.PAE
time:           Thu 12 Jul 2012 06:52:37 AM CDT

description:
:SELinux is preventing /usr/sbin/tmpwatch from 'rmdir' accesses on the directory kdecache-shooshoo.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that tmpwatch should be allowed rmdir access on the kdecache-shooshoo 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 tmpwatch /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:tmpreaper_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:user_home_dir_t:s0
:Target Objects                kdecache-shooshoo [ dir ]
:Source                        tmpwatch
:Source Path                   /usr/sbin/tmpwatch
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           tmpwatch-2.10.3-1.fc16.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-89.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.2-1.fc16.i686.PAE #1 SMP Thu Jun
:                              14 20:53:38 UTC 2012 i686 i686
:Alert Count                   35
:First Seen                    Sun 17 Jun 2012 09:19:38 AM CDT
:Last Seen                     Wed 11 Jul 2012 05:25:05 AM CDT
:Local ID                      8ad69eb0-4a64-43e7-94ea-983e74d5e33a
:
:Raw Audit Messages
:type=AVC msg=audit(1342002305.820:99): avc:  denied  { rmdir } for  pid=23441 comm="tmpwatch" name="kdecache-shooshoo" dev="dm-1" ino=2625387 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1342002305.820:99): arch=i386 syscall=rmdir success=no exit=EACCES a0=95d2fcb a1=4fd5c781 a2=95d2f90 a3=bf8d3c88 items=0 ppid=23428 pid=23441 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm=tmpwatch exe=/usr/sbin/tmpwatch subj=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 key=(null)
:
:Hash: tmpwatch,tmpreaper_t,user_home_dir_t,dir,rmdir
:
:audit2allow
:
:#============= tmpreaper_t ==============
:allow tmpreaper_t user_home_dir_t:dir rmdir;
:
:audit2allow -R
:
:#============= tmpreaper_t ==============
:allow tmpreaper_t user_home_dir_t:dir rmdir;
:

Comment 1 Miroslav Grepl 2012-07-12 18:33:02 UTC
*** Bug 839593 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2012-07-13 09:38:26 UTC
Could you remove this dir from /tmp directory?

Or execute

# chcon -t user_tmp_t /tmp/kdecache-shooshoo