Bug 188401

Summary: metacity no longer starts with selinux in enforcing mode
Product: [Fedora] Fedora Reporter: Christopher Aillon <caillon>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED RAWHIDE QA Contact: X/OpenGL Maintenance List <xgl-maint>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, redhat, tomri, vonbrand
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: mesa-libGL-6.5-3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-11 18:32:15 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 Christopher Aillon 2006-04-09 03:19:38 UTC
% metacity &
% metacity: error while loading shared libraries: libGL.so.1: cannot enable
executable stack as shared object requires: Permission denied

[1]  + exit 127   metacity
%


Version-Release number of selected component (if applicable):

metacity-2.15.0-3.x86_64
selinux-policy-2.2.29-4.noarch

How reproducible: ALWAYS

Steps to Reproduce:
1. Enable selinux
2. Start metacity

  
Actual results:
It fails to load, with selinux avc messages denying it


Expected results:
Sexy window management

Additional info:

Apr  8 19:12:07 anduin kernel audit(1144537927.494:219)  avc: denied  {
execstack }  for pid=3006 comm="metacity"
scontext=user_u:system_r:unconfined_t:s0
tcontext=user_u:system_r:unconfined_t:s0 tclass=process

Comment 1 Christopher Aillon 2006-04-10 19:46:52 UTC
Appears to be a mesa issue.  I think this can be solved by adding 

   .section .note.GNU-stack, "", @progbits ; .previous

to the x86-64 assembly code generated in src/mesa/glapi/gl_x86-64_asm.py

Comment 2 Christopher Aillon 2006-04-11 18:32:15 UTC
krh added the above bits and this is now fixed in today's mesa update.

Comment 3 Christopher Aillon 2006-04-11 18:33:06 UTC
*** Bug 188069 has been marked as a duplicate of this bug. ***

Comment 4 Christopher Aillon 2006-04-11 18:33:26 UTC
*** Bug 188295 has been marked as a duplicate of this bug. ***

Comment 5 Daniel Walsh 2006-04-19 14:29:43 UTC
*** Bug 189354 has been marked as a duplicate of this bug. ***

Comment 6 W. Michael Petullo 2006-04-30 17:27:08 UTC
Confirmed fixed with:

mesa-libGL-6.5-4
selinux-policy-targeted-2.2.35-2