Bug 755319

Summary: SELinux is preventing /usr/bin/gnome-screensaver from 'execute' accesses on the file /usr/bin/vlc.
Product: [Fedora] Fedora Reporter: Dirk Hoffmann <hoffmann>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: abdulvahu0131ducar, dominick.grift, dwalsh, mgrepl, sjdp, vendor-redhat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:61a5290836b6b8662f88808d2f9f4ddad67357d1032b0ff92d7e876ecc82f982
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-20 05:09:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.