Bug 677328 - SELinux is preventing /bin/dbus-daemon from 'getattr' accesses on the file /etc/localtime.
Summary: SELinux is preventing /bin/dbus-daemon from 'getattr' accesses on the file /e...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:53f311ee662...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-14 11:42 UTC by stephen
Modified: 2011-02-14 15:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-14 15:15:33 UTC
Type: ---


Attachments (Terms of Use)

Description stephen 2011-02-14 11:42:21 UTC
SELinux is preventing /bin/dbus-daemon from 'getattr' 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 getattr 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:xdm_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-28.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux mythtv.ether-net 2.6.35.10-74.fc14.x86_64 #1
                              SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 14 Feb 2011 11:17:25 GMT
Last Seen                     Mon 14 Feb 2011 11:17:25 GMT
Local ID                      b1775cce-0aa8-49bc-9fd1-99ca1b720341

Raw Audit Messages
type=AVC msg=audit(1297682245.759:28959): avc:  denied  { getattr } for  pid=2040 comm="dbus-daemon" path="/etc/localtime" dev=dm-0 ino=2230 scontext=system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file


type=SYSCALL msg=audit(1297682245.759:28959): arch=x86_64 syscall=fstat success=yes exit=0 a0=15 a1=7f4f7b29c640 a2=7f4f7b29c640 a3=2 items=0 ppid=1 pid=2040 auid=4294967295 uid=42 gid=471 euid=42 suid=42 fsuid=42 egid=471 sgid=471 fsgid=471 tty=(none) ses=4294967295 comm=dbus-daemon exe=/bin/dbus-daemon subj=system_u:system_r:xdm_dbusd_t:s0-s0:c0.c1023 key=(null)

Hash: dbus-daemon,xdm_dbusd_t,etc_runtime_t,file,getattr

audit2allow

#============= xdm_dbusd_t ==============
#!!!! This avc is allowed in the current policy

allow xdm_dbusd_t etc_runtime_t:file getattr;

audit2allow -R

#============= xdm_dbusd_t ==============
#!!!! This avc is allowed in the current policy

allow xdm_dbusd_t etc_runtime_t:file getattr;

Comment 1 Miroslav Grepl 2011-02-14 15:15:33 UTC
Sealert tells you what to do.


*****  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

----

Please reopen if this happens again. Thanks.


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