Bug 628077
Summary: | SELinux is preventing /usr/bin/Xorg "getattr" access to device /dev/dri/card0. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | William Makowski <wfm692> | ||||
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 14 | CC: | dwalsh, edneymatias, eparis, hhoyer, mgrepl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | setroubleshoot_trace_hash:3e31528875794447ee22c5c98419f29e10e7c6623c431b5834804e8d9befa180 | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2010-08-30 23:04:49 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
William Makowski
2010-08-27 19:49:00 UTC
This device should be labeled correctly by udev. Could you check the current label on the device? # ls -Z /dev/dri/card0 Should be ls -Z /dev/dri/card0 crw-rw----+ root video system_u:object_r:dri_device_t:s0 /dev/dri/card0 If your label is different, execute restorecon -v /dev/dri/card0 Will fix. Any idea how this label got created? Created attachment 441955 [details]
Xorg log
The label on the device appears to be the same as what you have.
[root@pippin ~]# ls -Z /dev/dri/card0
crw-rw----+ root video system_u:object_r:dri_device_t:s0 /dev/dri/card0
I ran restorecon -v /dev/dri/card0 and the label is still the same...
[root@pippin ~]# restorecon -v /dev/dri/card0
[root@pippin ~]# ls -Z /dev/dri/card0
crw-rw----+ root video system_u:object_r:dri_device_t:s0 /dev/dri/card0
It looks like this device is created (opened) by Xorg. I am attaching my Xorg.0.log. You can find the entry by searching for /dev/dri/card0 in the log.
Correction, device is created by udev. I changed udev_log="debug" in udev.conf and can see it being created in the messages log (see below). However, the SELinux alert happens when Xorg opens the device. Aug 30 14:03:09 pippin udevd-work[347]: creating device node '/dev/dri/card0', devnum=226:0, mode=0660, uid=0, gid=39 Aug 30 14:03:09 pippin udevd-work[347]: preserve file '/dev/dri/card0', because it has correct dev_t Aug 30 14:03:09 pippin udevd-work[347]: set permissions /dev/dri/card0, 020660, uid=0, gid=39 Marking as a dup of 566332. This looks like a udev bug introduced by: http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=578cc8a8085a47c963b5940459e475ac5f07219c Old udev would correct the selinux label unconditionally whereas new code only corrects it if the mask, uid, or gid is wrong. This matches up with what comment #3 says about "preserve file '/dev/dri/card0', because it has correct dev_t" *** This bug has been marked as a duplicate of bug 566332 *** |