Bug 853477 - SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory H.
Summary: SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directo...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f50f428a3ec5496cb11d38cd640...
: 853478 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-31 16:43 UTC by Horst H. von Brand
Modified: 2012-09-03 08:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-03 08:15:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Horst H. von Brand 2012-08-31 16:43:12 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.9-1.fc16.x86_64
time:           Fri 31 Aug 2012 12:42:43 PM CLT

description:
:SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory H.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that tmpwatch should be allowed write access on the H 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                system_u:object_r:dosfs_t:s0
:Target Objects                H [ dir ]
:Source                        tmpwatch
:Source Path                   /usr/sbin/tmpwatch
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           tmpwatch-2.10.3-1.fc16.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-91.fc16.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.9-1.fc16.x86_64 #1
:                              SMP Wed Aug 15 20:45:23 UTC 2012 x86_64 x86_64
:Alert Count                   220
:First Seen                    Tue 28 Aug 2012 09:17:34 AM CLT
:Last Seen                     Fri 31 Aug 2012 11:34:44 AM CLT
:Local ID                      837511c8-208f-44d5-b4d3-0b170c50bedc
:
:Raw Audit Messages
:type=AVC msg=audit(1346427284.472:367): avc:  denied  { write } for  pid=29686 comm="tmpwatch" name="48" dev="dm-5" ino=175 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=system_u:object_r:dosfs_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1346427284.472:367): arch=x86_64 syscall=unlink success=no exit=EACCES a0=20a558b a1=40470b a2=208b2d0 a3=7fff9d97c0e8 items=0 ppid=29683 pid=29686 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,dosfs_t,dir,write
:
:audit2allow
:
:#============= tmpreaper_t ==============
:#!!!! The source type 'tmpreaper_t' can write to a 'dir' of the following types:
:# amavis_spool_t, man_t, file_t, tmpfile, sandbox_file_t, httpd_cache_t, kismet_log_t, rpm_var_cache_t, httpd_sys_rw_content_t, print_spool_t
:
:allow tmpreaper_t dosfs_t:dir write;
:
:audit2allow -R
:
:#============= tmpreaper_t ==============
:#!!!! The source type 'tmpreaper_t' can write to a 'dir' of the following types:
:# amavis_spool_t, man_t, file_t, tmpfile, sandbox_file_t, httpd_cache_t, kismet_log_t, rpm_var_cache_t, httpd_sys_rw_content_t, print_spool_t
:
:allow tmpreaper_t dosfs_t:dir write;
:

Comment 1 Miroslav Grepl 2012-09-03 08:15:39 UTC
Where is "48" dir located? Did you move it to /tmp directory?

# find /tmp -printf "%P %Z\n" | grep "48"

If yes, remove it if you don't want it.

Please reopen, if I am wrong. Thank you.

Comment 2 Miroslav Grepl 2012-09-03 08:15:51 UTC
*** Bug 853478 has been marked as a duplicate of this bug. ***


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