Bug 755319 - SELinux is preventing /usr/bin/gnome-screensaver from 'execute' accesses on the file /usr/bin/vlc.
Summary: SELinux is preventing /usr/bin/gnome-screensaver from 'execute' accesses on t...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:61a5290836b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-20 16:08 UTC by Dirk Hoffmann
Modified: 2012-01-20 05:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-01-20 05:09:29 UTC
Type: ---


Attachments (Terms of Use)

Description Dirk Hoffmann 2011-11-20 16:08:59 UTC
SELinux is preventing /usr/bin/gnome-screensaver from 'execute' accesses on the file /usr/bin/vlc.

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

If you believe that gnome-screensaver should be allowed execute access on the vlc 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 gnome-screensav /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:mplayer_exec_t:s0
Target Objects                /usr/bin/vlc [ file ]
Source                        gnome-screensav
Source Path                   /usr/bin/gnome-screensaver
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           gnome-screensaver-2.30.2-2.fc14
Target RPM Packages           vlc-core-1.1.12-1.fc14
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-103.fc14.i686.PAE #1 SMP
                              Thu Oct 27 15:58:03 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sun 20 Nov 2011 04:38:30 PM CET
Last Seen                     Sun 20 Nov 2011 04:38:30 PM CET
Local ID                      be609815-2c70-435c-9be5-9c93268d9fee

Raw Audit Messages
type=AVC msg=audit(1321803510.707:58): avc:  denied  { execute } for  pid=4703 comm="gnome-screensav" name="vlc" dev=dm-0 ino=1482981 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:mplayer_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1321803510.707:58): arch=i386 syscall=access success=no exit=EACCES a0=8da6dcd a1=1 a2=84627c a3=8 items=0 ppid=1 pid=4703 auid=4294967295 uid=42 gid=42 euid=42 suid=42 fsuid=42 egid=42 sgid=42 fsgid=42 tty=(none) ses=4294967295 comm=gnome-screensav exe=/usr/bin/gnome-screensaver subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash: gnome-screensav,xdm_t,mplayer_exec_t,file,execute

audit2allow

#============= xdm_t ==============
allow xdm_t mplayer_exec_t:file execute;

audit2allow -R

#============= xdm_t ==============
allow xdm_t mplayer_exec_t:file execute;

Comment 1 Miroslav Grepl 2011-11-21 12:07:19 UTC
You can dontaudit it using

# grep mplayer_exec /var/log/audit/audit.log |audit2allow -D -M mypol
# semodule -i mypol.pp

Comment 2 Vinod Kutty 2012-01-20 04:33:10 UTC
I encountered this on my system, but I don't understand why gnome-screensaver would need to execute /usr/bin/vlc, so I considered it a good thing that access was denied. Can someone enlighten me?

Comment 3 Miroslav Grepl 2012-01-20 05:09:29 UTC
Please update to a newer version of Fedora. F14 is no longer supported.

g-screensaver does access check which we are able to dontaudit.


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