| Summary: | Wrong security context type for /dev/ati/card0 caused gdm crash with fglrx driver | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jammy.zhou |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-11-23 22:50:00 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
jammy.zhou
2011-11-10 10:23:23 UTC
Execute # restorecon -R -v /dev/ati/card* should fix. Try to update to the latest policy # yum update selinux-policy-targeted --enablerepo=updates-testing If you see this issue again, please reopen the bug. Forgot to mention that the device node /dev/ati/card* is created at runtime when start X server. Is there any method to change the context type when creating the node by mknod? After update the selinux policy, the problem is still there. And run "matchpathcon /dev/ati/card0", I got the results below: /dev/ati/card0 system_u:object_r:device_t:s0 The gdm crash problem with fglrx is caused by the display manager is started by /etc/X11/prefdm (with ininrc_exec_t security context type). And it seems that initrc_exec_t has no permission to access device_t type device node. If I change prefdm to bin_t or change /dev/ati/card0 to dri_device_t, the problem doesn't happen. I think this problem can be solved from selinux policy side. Miroslav f9ba2da4a6449f14aaf13dca0335d33e254ad52a should fix this. |