Bug 781879 - SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'read' accesses on the file online.
Summary: SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'read' accesse...
Keywords:
Status: CLOSED WONTFIX
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:fac620680df...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-15 22:38 UTC by Pavel
Modified: 2012-02-06 09:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-16 08:34:52 UTC
Type: ---


Attachments (Terms of Use)

Description Pavel 2012-01-15 22:38:22 UTC
SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'read' accesses on the file online.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that gsd-datetime-mechanism should be allowed read access on the online 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 gsd-datetime-me /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                online [ file ]
Source                        gsd-datetime-me
Source Path                   /usr/libexec/gsd-datetime-mechanism
Port                          <Неизвестно>
Host                          (removed)
Source RPM Packages           gnome-settings-daemon-2.32.1-1.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-46.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.14-106.fc14.x86_64 #1 SMP Wed
                              Nov 23 13:07:52 UTC 2011 x86_64 x86_64
Alert Count                   13
First Seen                    Пн. 09 янв. 2012 01:50:55
Last Seen                     Пн. 16 янв. 2012 01:18:49
Local ID                      6cc31724-3448-412c-b7a9-b7f257436e56

Raw Audit Messages
type=AVC msg=audit(1326662329.775:28): avc:  denied  { read } for  pid=2499 comm="gsd-datetime-me" name="online" dev=sysfs ino=32 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=file


type=SYSCALL msg=audit(1326662329.775:28): arch=x86_64 syscall=open success=no exit=EACCES a0=3c09377668 a1=80000 a2=2003ff a3=1 items=0 ppid=1 pid=2499 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=gsd-datetime-me exe=/usr/libexec/gsd-datetime-mechanism subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)

Hash: gsd-datetime-me,gnomeclock_t,sysfs_t,file,read

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t sysfs_t:file read;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t sysfs_t:file read;

Comment 1 Miroslav Grepl 2012-01-16 08:34:52 UTC
Fedora14 is no longer supported. Please update to a newer version of Fedora. Thank you.


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