gusty - xserver-xorg-core - wrong device permissions on /dev/dri/card0 (crw-rw----) instead of (crw-rw-rw-)

Bug #135273 reported by Jelle de Jong
4
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

gutsy - xserver-xorg-core - wrong device permissions on /dev/dri/card0 (crw-rw----) instead of (crw-rw-rw-)

When debugging my video driver on gutsy to try enabling direct rendering I found the following:
libGL: OpenDriver: trying /usr/lib/dri/unichrome_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: open result is -1, (Permission denied)
drmOpenDevice: Open failed

The permission should look like this:
ls -hal /dev/dri/card0
crw-rw-rw- 1 root root 226, 0 2007-08-28 09:54 /dev/dri/card0

but actually are crw-rw----

Which package is responsible for setting the permissions for the card0 device?

Carey Underwood (cwillu)
description: updated
Revision history for this message
Jelle de Jong (jelledejong) wrote :

executing glxinfo and glxgears with superuser rights provides access to unichrome_dri.so and gives information that direct rendering is enabled. Is the permission a bug or a new security feature?

description: updated
Revision history for this message
Benno Schulenberg (bennoschulenberg) wrote :

Permissions here are crw-rw----, and the card is accessible without a problem by normal users. You may be missing this section in your /etc/X11/xorg.conf:

Section "DRI"
        Mode 0666
EndSection

Alternatively, make sure that you are member of the video group:
check the output of the 'groups' command.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

The server now uses 0666 as default.

Changed in xorg-server:
status: New → Fix Released
Revision history for this message
Jelle de Jong (jelledejong) wrote :

Thank you Timo

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.