Bug 669921 - SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'execute' accesses on the file bash.
Summary: SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'execute' acce...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:78e9d887113...
: 669923 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-15 20:08 UTC by John Watzke
Modified: 2011-01-17 09:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-01-17 09:52:26 UTC
Type: ---


Attachments (Terms of Use)

Description John Watzke 2011-01-15 20:08:23 UTC
SELinux is preventing /usr/libexec/gsd-datetime-mechanism from 'execute' accesses on the file bash.

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

If you believe that gsd-datetime-mechanism should be allowed execute access on the bash 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:shell_exec_t:s0
Target Objects                bash [ file ]
Source                        gsd-datetime-me
Source Path                   /usr/libexec/gsd-datetime-mechanism
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-settings-daemon-2.91.8-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.12-6.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.x86_64
                              #1 SMP Fri Jan 7 14:57:36 UTC 2011 x86_64 x86_64
Alert Count                   2
First Seen                    Sat 15 Jan 2011 07:04:16 PM EST
Last Seen                     Sat 15 Jan 2011 07:06:44 PM EST
Local ID                      8fbc0a79-d76f-4b8d-9972-f7ecc1f1ec06

Raw Audit Messages
type=AVC msg=audit(1295136404.355:76): avc:  denied  { execute } for  pid=4856 comm="gsd-datetime-me" name="bash" dev=dm-0 ino=4156 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1295136404.355:76): arch=x86_64 syscall=execve success=no exit=EACCES a0=1740970 a1=172e300 a2=7fff15f91948 a3=7fff15f90b70 items=0 ppid=4854 pid=4856 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,shell_exec_t,file,execute

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t shell_exec_t:file execute;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t shell_exec_t:file execute;

Comment 1 Miroslav Grepl 2011-01-17 09:48:47 UTC
*** Bug 669923 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2011-01-17 09:52:26 UTC
Fixed in selinux-policy-3.9.12-7.fc15.


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