]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: make /dev/vsock 0666
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Jan 2021 08:56:26 +0000 (12:56 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Jan 2021 08:59:43 +0000 (12:59 +0400)
/dev/vsock supports only ioctl (the only ioctl supported is
IOCTL_VM_SOCKETS_GET_LOCAL_CID), so 0666 should be okay, or 0664 if in
the future we will implement some kind of write support exposed only to
user/group.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
rules.d/50-udev-default.rules.in

index e1146fa88f8b4a38924d309b4aa4728cedc8b955..6688b840d697c7100d7f8f9ad7ed7aa885db37ca 100644 (file)
@@ -85,6 +85,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=="vsock", MODE="0666"
+
 KERNEL=="udmabuf", GROUP="kvm"
 
 SUBSYSTEM=="ptp", ATTR{clock_name}=="KVM virtual PTP", SYMLINK += "ptp_kvm"