Hide Forgot
SELinux is preventing /usr/sbin/gpsd 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 gpsd 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 gpsd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:gpsd_t:s0 Target Context system_u:object_r:etc_runtime_t:s0 Target Objects /etc/localtime [ file ] Source gpsd Source Path /usr/sbin/gpsd Port <Unknown> Host (removed) Source RPM Packages gpsd-2.95-2.fc14 Target RPM Packages glibc-2.13-1 Policy RPM selinux-policy-3.9.7-29.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686 Alert Count 2 First Seen Sat 12 Feb 2011 06:18:49 AM PST Last Seen Sun 13 Feb 2011 04:33:24 PM PST Local ID b834b39e-4ad6-44c8-a23a-be864f467888 Raw Audit Messages type=AVC msg=audit(1297643604.361:16): avc: denied { read } for pid=1536 comm="gpsd" name="localtime" dev=dm-0 ino=2646 scontext=system_u:system_r:gpsd_t:s0 tcontext=system_u:object_r:etc_runtime_t:s0 tclass=file type=SYSCALL msg=audit(1297643604.361:16): arch=i386 syscall=open success=no exit=EACCES a0=831907 a1=0 a2=1b6 a3=830477 items=0 ppid=1 pid=1536 auid=4294967295 uid=99 gid=18 euid=99 suid=99 fsuid=99 egid=18 sgid=18 fsgid=18 tty=(none) ses=4294967295 comm=gpsd exe=/usr/sbin/gpsd subj=system_u:system_r:gpsd_t:s0 key=(null) Hash: gpsd,gpsd_t,etc_runtime_t,file,read audit2allow #============= gpsd_t ============== allow gpsd_t etc_runtime_t:file read; audit2allow -R #============= gpsd_t ============== allow gpsd_t etc_runtime_t:file read;
Alert tells you how to fix. Although we would like to know how it got mislabeled in the first place. restorecon /etc/localtime Please reopen if this happens again.