Bug 455089 - /dev/dri/card* is given root only permission.
Summary: /dev/dri/card* is given root only permission.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xorg-x11-server
Version: 5.3
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Adam Jackson
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 364381
TreeView+ depends on / blocked
 
Reported: 2008-07-11 21:26 UTC by Luugi Marsan
Modified: 2009-06-20 04:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
* libdrm, the direct rendering module, had its file permissions set to allow use only by root. This meant that unless xorg.conf were edited specifically to allow drm access, non-root users could not access /dev/dri/card0 and therefore could not use accelerated 3D with the fglrx driver for ATI video cards. In this update, libdrm has been patched to allow non-root users to access the module. In turn, this allows non-root users to take advantage of the 3D acceleration features of these cards without having to manually configure xorg.conf to do so.
Clone Of:
Environment:
Last Closed: 2009-01-20 21:29:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
X server log file (62.14 KB, text/plain)
2008-07-24 15:49 UTC, Luugi Marsan
no flags Details
xorg.conf file used with fglrx driver (2.58 KB, text/plain)
2008-07-24 15:50 UTC, Luugi Marsan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0162 0 normal SHIPPED_LIVE xorg-x11-server bug fix update 2009-01-20 16:05:20 UTC

Description Luugi Marsan 2008-07-11 21:26:32 UTC
Description of problem:

Non root users do not have permission to use DRM unless the xorg.conf file is 
edited to set the proper permission. Other distributions including Fedora, 
patch the libdrm module to allow non-root users to access /dev/dri/card0 which 
in turns allows accelerated 3D with the fglrx driver. Is there any chance that 
you will change this policy in the near future? We have users complaining of 
this extra step, so we want to have a clear understanding of your intentions to 
probably relay the information to them. 



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

steps to reproduce: 
 1- startx with radeon or fgrlx driver installed. 

 2- ls -l /dev/dri/card0

 3- Check file permission. 

The file permission are currently 660. Is this expected?  Fedora 9 and other 
distributions will have permissions set to 666 since they patch libdrm to allow 
non-root users to access /dev/dri/card*.

Comment 1 Matěj Cepl 2008-07-15 23:32:24 UTC
Thanks for the bug report.  We have reviewed the information you have provided
above, and there is some additional information we require that will be helpful
in our diagnosis of this issue.

Please attach your X server config file (/etc/X11/xorg.conf) and X server log
file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file
attachments using the bugzilla file attachment link below.

Could you please also try to run without any /etc/X11/xorg.conf whatsoever and
let X11 autodetect your display and video card? Attach to this bug
/var/log/Xorg.0.log from this attempt as well, please.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

Comment 3 Luugi Marsan 2008-07-24 15:49:02 UTC
Created attachment 312573 [details]
X server log file

Comment 4 Luugi Marsan 2008-07-24 15:50:14 UTC
Created attachment 312574 [details]
xorg.conf file used with fglrx driver

Comment 5 Luugi Marsan 2008-07-24 15:54:40 UTC
(In reply to comment #1)
> Thanks for the bug report.  We have reviewed the information you have provided
> above, and there is some additional information we require that will be helpful
> in our diagnosis of this issue.
> 
> Please attach your X server config file (/etc/X11/xorg.conf) and X server log
> file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file
> attachments using the bugzilla file attachment link below.
> 
> Could you please also try to run without any /etc/X11/xorg.conf whatsoever and
> let X11 autodetect your display and video card? Attach to this bug
> /var/log/Xorg.0.log from this attempt as well, please.
> 
> We will review this issue again once you've had a chance to attach this
information.
> 
> Thanks in advance.

The xserver will not start without an xorg.conf file since I'm using a R600. card. 


Comment 7 Kevin E. Martin 2008-08-14 19:55:55 UTC
Luugi, the log file you've attached is from X11R6.8.2, which is not used in RHEL5.  Is this a bug in RHEL4, RHEL5, or both?

Comment 8 Russell Doty 2008-08-19 20:15:31 UTC
AMD, can you answer the question in comment #7?

Comment 9 Luugi Marsan 2008-08-19 21:17:57 UTC
(In reply to comment #7)
> Luugi, the log file you've attached is from X11R6.8.2, which is not used in
> RHEL5.  Is this a bug in RHEL4, RHEL5, or both?


Both. RHEL4 and RHEL5.

Comment 10 Russell Doty 2008-08-19 21:25:51 UTC
We will need separate Bugzilla entries for RHEL 5 and RHEL 4. The usual way of handling this sort of request is to implement in RHEL 5 and then backport to RHEL 4.

So, let's get this nailed down for RHEL 5 and then clone the BZ for RHEL 4.

Kevin, what information do you need to get this resolved for RHEL 5?

Comment 11 Dave Airlie 2008-09-12 03:44:12 UTC
can we get QA ack for this, I've built the fix into

xorg-x11-server-1.1.1-48.48.el5

already.

bug moved to server from libdrm.

Comment 13 Adam Jackson 2008-09-12 15:47:04 UTC
Built in 1.1.1-48.48.el5.  MODIFIED.

Comment 16 Ruediger Landmann 2009-01-08 02:00:53 UTC
Release note added. If any revisions are required, please set the 
"requires_release_notes" flag to "?" and edit the "Release Notes" field accordingly.
All revisions will be proofread by the Engineering Content Services team.

New Contents:
* libdrm, the direct rendering module, had its file permissions set to allow use only by root. This meant that unless xorg.conf were edited specifically to allow drm access, non-root users could not access /dev/dri/card0 and therefore could not use accelerated 3D with the fglrx driver for ATI video cards. In this update, libdrm has been patched to allow non-root users to access the module. In turn, this allows non-root users to take advantage of the 3D acceleration features of these cards without having to manually configure xorg.conf to do so.

Comment 17 errata-xmlrpc 2009-01-20 21:29:24 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 therefore 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-2009-0162.html


Note You need to log in before you can comment on or make changes to this bug.