]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: make /dev/vfio/vfio 0666
authorAlyssa Ross <hi@alyssa.is>
Tue, 4 May 2021 22:05:55 +0000 (22:05 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 May 2021 15:22:00 +0000 (17:22 +0200)
Quoting Documentation/driver-api/vfio.rst in Linux:

> note that /dev/vfio/vfio provides no capabilities on its own and is therefore
> expected to be set to mode 0666 by the system

rules.d/50-udev-default.rules.in

index dabde06dde78b0926970ee2f0b203c4c19e37604..3853f024af81c31a499eae6b2566b50edfef2f6b 100644 (file)
@@ -96,6 +96,8 @@ KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
 # The static_node is required on s390x and ppc (they are using MODULE_ALIAS)
 KERNEL=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=kvm"
 
+KERNEL=="vfio", MODE="0666", OPTIONS+="static_node=vfio/vfio"
+
 KERNEL=="vsock", MODE="0666"
 KERNEL=="vhost-vsock", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=vhost-vsock"