Bug 771345 - SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory dconf.
Summary: SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directo...
Keywords:
Status: CLOSED ERRATA
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:780485ec15219bef54682966bf5...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-03 12:42 UTC by Paul W. Frields
Modified: 2012-03-15 15:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:26:17 UTC
Type: ---


Attachments (Terms of Use)

Description Paul W. Frields 2012-01-03 12:42:02 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.4-1.fc16.x86_64
reason:         SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory dconf.
time:           Tue 03 Jan 2012 07:41:44 AM EST

description:
:SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory dconf.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that tmpwatch should be allowed write access on the dconf 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:config_home_t:s0
:Target Objects                dconf [ dir ]
:Source                        tmpwatch
:Source Path                   /usr/sbin/tmpwatch
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           tmpwatch-2.10.3-1.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-64.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.4-1.fc16.x86_64 #1 SMP Tue Nov 29
:                              11:37:53 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Tue 03 Jan 2012 07:29:49 AM EST
:Last Seen                     Tue 03 Jan 2012 07:29:49 AM EST
:Local ID                      aa431e2e-e13a-4b2c-aaf1-4ad567ab8c8f
:
:Raw Audit Messages
:type=AVC msg=audit(1325593789.290:4425): avc:  denied  { write } for  pid=27158 comm="tmpwatch" name="dconf" dev=dm-11 ino=367 scontext=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:config_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1325593789.290:4425): arch=x86_64 syscall=rmdir success=no exit=EACCES a0=1a6cdab a1=404c78 a2=1a5c280 a3=7fffbf606dc8 items=0 ppid=27156 pid=27158 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=529 comm=tmpwatch exe=/usr/sbin/tmpwatch subj=system_u:system_r:tmpreaper_t:s0-s0:c0.c1023 key=(null)
:
:Hash: tmpwatch,tmpreaper_t,config_home_t,dir,write
:
:audit2allow
:
:#============= tmpreaper_t ==============
:#!!!! The source type 'tmpreaper_t' can write to a 'dir' of the following types:
:# kismet_log_t, rpm_var_cache_t, httpd_sys_rw_content_t, print_spool_t, amavis_spool_t, man_t, usr_t, file_t, tmpfile, sandbox_file_t, httpd_cache_t
:
:allow tmpreaper_t config_home_t:dir write;
:
:audit2allow -R
:
:#============= tmpreaper_t ==============
:#!!!! The source type 'tmpreaper_t' can write to a 'dir' of the following types:
:# kismet_log_t, rpm_var_cache_t, httpd_sys_rw_content_t, print_spool_t, amavis_spool_t, man_t, usr_t, file_t, tmpfile, sandbox_file_t, httpd_cache_t
:
:allow tmpreaper_t config_home_t:dir write;
:

Comment 1 Miroslav Grepl 2012-01-06 15:29:14 UTC
Does it happen by default? Looks like tmpreaper wants to purge dconf directory.

Comment 3 Miroslav Grepl 2012-03-15 15:26:17 UTC
Should be fixed in the latest policy.


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