Bug 431023

Summary: SELinux is preventing /usr/bin/Xorg (xdm_t) "mmap_zero" access to <Unknown> (xdm_t).
Product: Red Hat Enterprise Linux 5 Reporter: Jay Turner <jturner>
Component: selinux-policy-targetedAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: desktop-bugs <desktop-bugs>
Severity: urgent Docs Contact:
Priority: high    
Version: 5.2CC: ajax, dwalsh, eparis, sgrubb, srevivo, zcerza
Target Milestone: betaKeywords: Regression
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2008-0465 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-21 16:06:47 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:
Attachments:
Description Flags
sealert output for failure none

Description Jay Turner 2008-01-31 06:54:10 UTC
Description of problem:
Getting the following attempting to start Xorg under the 2.6.18-76.el5.i686
kernel with selinux-policy-2.4.6-114.el5.

Attaching the sealert output.

I'll try the latest policy package (-117.el5) but doesn't appear this problem
has been addressed there.  Problem does not manifest on -75.el5 kernel, so I
suspect this is a side-effect of:

- [selinux] harden against null ptr dereference bugs (Eric Paris ) [233021]

Comment 1 Jay Turner 2008-01-31 06:54:10 UTC
Created attachment 293552 [details]
sealert output for failure

Comment 2 Jay Turner 2008-01-31 06:57:08 UTC
Proposing as beta blocker, mostly because I'm not sure if we're considering
putting -76.el5 into the beta.  QE ack for fixing this in 5.2.

Comment 3 Jay Turner 2008-01-31 11:01:19 UTC
selinux-policy-2.4.6-117.el5 doesn't change anything.  And I should have noted
this is being seen with xorg-x11-server-1.1.1-48.34.el5.

Comment 4 Steve Grubb 2008-01-31 11:17:00 UTC
Eric, wasn't the new kernel patch supposed to allow a CAP_RAW loophole?

Comment 5 Eric Paris 2008-01-31 13:19:30 UTC
CAP_RAW only takes effect if selinux=0.

this is a policy bug which i thought had been fixed back in 5.1 (even though we
didn't implement the kernel part)  I know dan has this in rawhide.

Comment 7 Daniel Walsh 2008-01-31 16:11:22 UTC
Fixed in selinux-policy-2.4.6-118

Comment 8 Jay Turner 2008-02-01 08:46:01 UTC
Fix confirmed with 2.4.6-118.  Will move to Verified once the package is
incorporated into a tree.

Comment 11 Dave Airlie 2008-02-21 03:46:11 UTC
*** Bug 433687 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2008-05-21 16:06:47 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0465.html