Bug 672048

Summary: SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /etc/localtime.
Product: [Fedora] Fedora Reporter: Miroslav Vaško <mirec.v>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dwalsh, geffry.villatoro, mgrepl, olivares14031, ronzhin98, wmilks
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b2267dd5f8537161abd00960ee9835aee65a79bdd3c46b9389ef951667f80745
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-24 14:34:46 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 Miroslav Vaško 2011-01-23 14:56:35 UTC
SELinux is preventing /bin/dbus-daemon from 'read' accesses on the file /etc/localtime.

*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/localtime default label should be locale_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /etc/localtime

*****  Plugin catchall (1.49 confidence) suggests  ***************************

If you believe that dbus-daemon should be allowed read access on the localtime file 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 dbus-daemon /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:system_dbusd_t:s0-s0:c0.c1023
Target Context                system_u:object_r:etc_runtime_t:s0
Target Objects                /etc/localtime [ file ]
Source                        dbus-daemon
Source Path                   /bin/dbus-daemon
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           dbus-1.4.0-2.fc14
Target RPM Packages           glibc-2.12.90-21
Policy RPM                    selinux-policy-3.9.7-20.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.10-74.fc14.x86_64 #1 SMP
                              Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   13
First Seen                    Št 23. december 2010, 12:07:12 CET
Last Seen                     Ne 23. január 2011, 15:37:48 CET
Local ID                      67d32e32-84d5-46e3-a4e9-f3407cbbd8d5

Raw Audit Messages
type=AVC msg=audit(1295793468.877:32235): avc:  denied  { read } for  pid=1381 comm="dbus-daemon" name="localtime" dev=dm-0 ino=1707692 scontext=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file

dbus-daemon,system_dbusd_t,etc_runtime_t,file,read
type=SYSCALL msg=audit(1295793468.877:32235): arch=x86_64 syscall=open success=no exit=EACCES a0=7f97389c974d a1=0 a2=1b6 a3=2 items=0 ppid=1 pid=1381 auid=4294967295 uid=81 gid=81 euid=81 suid=81 fsuid=81 egid=81 sgid=81 fsgid=81 tty=(none) ses=4294967295 comm=dbus-daemon exe=/bin/dbus-daemon subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 key=(null)
dbus-daemon,system_dbusd_t,etc_runtime_t,file,read

#============= system_dbusd_t ==============
allow system_dbusd_t etc_runtime_t:file read;

Comment 1 Miroslav Grepl 2011-01-24 14:34:46 UTC
Did you run a configuration tool?  Did you run a tool to change the date/time on your machine?




*****  Plugin restorecon (99.5 confidence) suggests  *************************

If you want to fix the label. 
/etc/localtime default label should be locale_t.
Then you can run restorecon.
Do

# /sbin/restorecon -v /etc/localtime

*** This bug has been marked as a duplicate of bug 653867 ***