Bug 771345

Summary: SELinux is preventing /usr/sbin/tmpwatch from 'write' accesses on the directory dconf.
Product: [Fedora] Fedora Reporter: Paul W. Frields <stickster>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA 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: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:780485ec15219bef54682966bf5b49c45cbb93a3bdb9b7a7a21b26a5576b3ba8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-15 15:26:17 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 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.