mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
Re-add uaccess tag for /dev/dri/renderD*
Setting an access mode != 0666 is explicitly supported via -Dgroup-render-mode In such a case, re-add the uaccess tag. This is basically the same change that was done for /dev/kvm in commitfa53e24130
andace5e3111c
and partially reverts the changes from4e15a7343c
This commit is contained in:
parent
1e4960b86d
commit
055a083a47
@ -822,7 +822,9 @@ conf.set10('ENABLE_WHEEL_GROUP', get_option('wheel-group'))
|
||||
dev_kvm_mode = get_option('dev-kvm-mode')
|
||||
substs.set('DEV_KVM_MODE', dev_kvm_mode)
|
||||
conf.set10('DEV_KVM_UACCESS', dev_kvm_mode != '0666')
|
||||
substs.set('GROUP_RENDER_MODE', get_option('group-render-mode'))
|
||||
group_render_mode = get_option('group-render-mode')
|
||||
substs.set('GROUP_RENDER_MODE', group_render_mode)
|
||||
conf.set10('GROUP_RENDER_UACCESS', group_render_mode != '0666')
|
||||
|
||||
kill_user_processes = get_option('default-kill-user-processes')
|
||||
conf.set10('KILL_USER_PROCESSES', kill_user_processes)
|
||||
|
@ -46,6 +46,10 @@ SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
|
||||
|
||||
# DRI video devices
|
||||
SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
|
||||
m4_ifdef(`GROUP_RENDER_UACCESS',``
|
||||
# DRI render nodes
|
||||
SUBSYSTEM=="drm", KERNEL=="renderD*", TAG+="uaccess"''
|
||||
)m4_dnl
|
||||
m4_ifdef(`DEV_KVM_UACCESS',``
|
||||
# KVM
|
||||
SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"''
|
||||
|
Loading…
Reference in New Issue
Block a user