Comment 5 for bug 306014

Revision history for this message
Albert Damen (albrt) wrote : Re: libdrm 2.4.1 needs udev rule for /dev/dri/card*

I am not a member of group video:
$ groups
albert adm dialout cdrom plugdev lpadmin admin sambashare

(first user on the system, installed from intrepid live cd, upgraded to jaunty)

Then for the hal acl:
- polkit-gnome-authorization shows console and active console should have access to Video Devices
- console-kit knows my session:
$ ck-list-sessions
Session2:
 unix-user = '1000'
 realname = 'Albert,,,'
 seat = 'Seat1'
 session-type = ''
 active = TRUE
 x11-display = ':0'
 x11-display-device = '/dev/tty7'
 display-device = ''
 remote-host-name = ''
 is-local = TRUE
 on-since = '2008-12-08T10:58:03.416594Z'
 login-session-id = '4294967295'
- but there is no acl on /dev/dri/card0:
$ sudo getfacl /dev/dri/card0
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card0
# owner: root
# group: video
user::rw-
group::rw-
other::---

note, for kvm I do get an additional line with getfacl: user:albert:rw-

Attached is the output of hal-find-by-capability --capability drm | xargs hal-device

Comparing the hal-device output to kvm, the key "access_control.file" seems to be missing?
/usr/share/hal/fdi/policy/10osvendor/20-acl-management.fdi contains:
    <match key="info.capabilities" contains="drm">
        <append key="info.capabilities" type="strlist">access_control</append>
        <merge key="access_control.file" type="copy_property">input.device</merge>
        <merge key="access_control.type" type="string">video</merge>
    </match>

I guess as the drm device has no key input.device, the key access_control.file is not properly set?