mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
Merge pull request #18214 from elmarco/vsock
udev: allow kvm group to access vhost net and vsock devices
This commit is contained in:
commit
061e9fc5f1
@ -85,6 +85,11 @@ KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
|
|||||||
# The static_node is required on s390x and ppc (they are using MODULE_ALIAS)
|
# 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=="kvm", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=kvm"
|
||||||
|
|
||||||
|
KERNEL=="vsock", MODE="0666"
|
||||||
|
KERNEL=="vhost-vsock", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=vhost-vsock"
|
||||||
|
|
||||||
|
KERNEL=="vhost-net", GROUP="kvm", MODE="@DEV_KVM_MODE@", OPTIONS+="static_node=vhost-net"
|
||||||
|
|
||||||
KERNEL=="udmabuf", GROUP="kvm"
|
KERNEL=="udmabuf", GROUP="kvm"
|
||||||
|
|
||||||
SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
|
SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"
|
||||||
|
@ -15,3 +15,5 @@ z /dev/loop-control 0660 - disk -
|
|||||||
z /dev/net/tun 0666 - - -
|
z /dev/net/tun 0666 - - -
|
||||||
z /dev/fuse 0666 - - -
|
z /dev/fuse 0666 - - -
|
||||||
z /dev/kvm @DEV_KVM_MODE@ - kvm -
|
z /dev/kvm @DEV_KVM_MODE@ - kvm -
|
||||||
|
z /dev/vhost-net @DEV_KVM_MODE@ - kvm -
|
||||||
|
z /dev/vhost-vsock @DEV_KVM_MODE@ - kvm -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user