Bug 485609

Summary: avc: denied null for request=GLX:MakeCurrent
Product: [Fedora] Fedora Reporter: sangu <sangu.fedora>
Component: xorg-x11-serverAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dwalsh, ewalsh, mgrepl, xgl-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.6.0-13.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-17 14:21:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description sangu 2009-02-15 09:43:17 UTC
Description of problem:
$ cat /var/log/Xorg.0.log
<skip>
(WW) avc:  denied  null for request=GLX:MakeCurrent comm=compiz resid=3600006 restype=<unknown> scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=x_resource
(WW) avc:  denied  null for request=GLX:MakeCurrent comm=glxgears resid=5000003 restype=<unknown> scontext=unconfined_u:unconfined_r:unconfined_t:s0 tcontext=unconfined_u:unconfined_r:unconfined_t:s0 tclass=x_resource

$ ls -Z /usr/lib64/nvidia/libGL*
lrwxrwxrwx  root root system_u:object_r:lib_t:s0       /usr/lib64/nvidia/libGL.so -> libGL.so.180.29
lrwxrwxrwx  root root system_u:object_r:lib_t:s0       /usr/lib64/nvidia/libGL.so.1 -> libGL.so.180.29
-rwxr-xr-x  root root system_u:object_r:textrel_shlib_t:s0 /usr/lib64/nvidia/libGL.so.180.29
lrwxrwxrwx  root root system_u:object_r:lib_t:s0       /usr/lib64/nvidia/libGLcore.so -> libGLcore.so.180.29
lrwxrwxrwx  root root system_u:object_r:lib_t:s0       /usr/lib64/nvidia/libGLcore.so.1 -> libGLcore.so.180.29
-rwxr-xr-x  root root system_u:object_r:textrel_shlib_t:s0 /usr/lib64/nvidia/libGLcore.so.180.29


Version-Release number of selected component (if applicable):
3.6.5-3.fc11

How reproducible:
always

Steps to Reproduce:
1. 
2.
3.
  
Actual results:


Expected results:


Additional info:
# rpm -qa | grep selinux
selinux-policy-3.6.5-3.fc11.noarch
selinux-policy-targeted-3.6.5-3.fc11.noarch
libselinux-utils-2.0.77-3.fc11.x86_64
libselinux-python-2.0.77-3.fc11.x86_64
libselinux-2.0.77-3.fc11.x86_64

Comment 1 Daniel Walsh 2009-02-16 14:13:58 UTC
This looks like a problem in the X11 SELinux patches.

Comment 2 Eamon Walsh 2009-02-17 18:43:27 UTC
Caused by "DixUnknownAccess" being passed to dixLookupResource or one of the other lookup functions.  Need to find the callsite and change it to a nonzero access mode, e.g. "DixReadAccess" to reflect the purpose of the lookup.