mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
Do not apply uaccess tag for /dev/kvm if mode is 0666
This commit is contained in:
parent
fa53e24130
commit
ace5e3111c
@ -741,7 +741,9 @@ substs.set('USERS_GID', users_gid)
|
||||
conf.set10('ENABLE_ADM_GROUP', get_option('adm-group'))
|
||||
conf.set10('ENABLE_WHEEL_GROUP', get_option('wheel-group'))
|
||||
|
||||
substs.set('DEV_KVM_MODE', get_option('dev-kvm-mode'))
|
||||
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'))
|
||||
|
||||
kill_user_processes = get_option('default-kill-user-processes')
|
||||
|
@ -46,9 +46,10 @@ SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
|
||||
|
||||
# DRI video devices
|
||||
SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
|
||||
|
||||
m4_ifdef(`DEV_KVM_UACCESS',``
|
||||
# KVM
|
||||
SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
|
||||
SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"''
|
||||
)m4_dnl
|
||||
|
||||
# smart-card readers
|
||||
ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"
|
@ -81,10 +81,6 @@ if conf.get('ENABLE_LOGIND') == 1
|
||||
|
||||
install_data('70-power-switch.rules', install_dir : udevrulesdir)
|
||||
|
||||
if conf.get('HAVE_ACL') == 1
|
||||
install_data('70-uaccess.rules', install_dir : udevrulesdir)
|
||||
endif
|
||||
|
||||
seat_rules = configure_file(
|
||||
input : '71-seat.rules.in',
|
||||
output : '71-seat.rules',
|
||||
@ -92,6 +88,15 @@ if conf.get('ENABLE_LOGIND') == 1
|
||||
install_data(seat_rules,
|
||||
install_dir : udevrulesdir)
|
||||
|
||||
custom_target(
|
||||
'70-uaccess.rules',
|
||||
input : '70-uaccess.rules.m4',
|
||||
output: '70-uaccess.rules',
|
||||
command : [meson_apply_m4, config_h, '@INPUT@'],
|
||||
capture : true,
|
||||
install : conf.get('HAVE_ACL') == 1,
|
||||
install_dir : udevrulesdir)
|
||||
|
||||
custom_target(
|
||||
'73-seat-late.rules',
|
||||
input : '73-seat-late.rules.m4',
|
||||
|
Loading…
Reference in New Issue
Block a user