]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Re-add uaccess tag for /dev/kvm
authorMichael Biebl <biebl@debian.org>
Tue, 10 Jul 2018 12:47:58 +0000 (14:47 +0200)
committerMichael Biebl <biebl@debian.org>
Tue, 10 Jul 2018 12:51:50 +0000 (14:51 +0200)
If --dev-kvm-mode is set to something different then 0666, which we
explicitly support, it makes sense to still apply the uaccess tag to
/dev/kvm. For distros which opt to use the default 0666, this change is
a nop.

This partially reverts commit b8fd3d82205f632ce001fade74fed287e1564a1a.

src/login/70-uaccess.rules

index 3515d292ac523e6f59b7aa480d73ff8980728e65..6feb9572e656173d9c63094224064f2688475cbe 100644 (file)
@@ -47,6 +47,9 @@ SUBSYSTEM=="firewire", ATTR{units}=="*0x00a02d:0x014001*", TAG+="uaccess"
 # DRI video devices
 SUBSYSTEM=="drm", KERNEL=="card*", TAG+="uaccess"
 
+# KVM
+SUBSYSTEM=="misc", KERNEL=="kvm", TAG+="uaccess"
+
 # smart-card readers
 ENV{ID_SMARTCARD_READER}=="?*", TAG+="uaccess"