From a930f7b2eaa4be7477d0244000ce70e16a9e948e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 14 Jun 2013 05:02:22 +0200 Subject: [PATCH] udev: setup permissions on xen device nodes --- udev/Makefile | 1 + udev/udev-qubes-misc.rules | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 udev/udev-qubes-misc.rules diff --git a/udev/Makefile b/udev/Makefile index af956bf..a5c029f 100644 --- a/udev/Makefile +++ b/udev/Makefile @@ -4,6 +4,7 @@ install: mkdir -p $(DESTDIR)/etc/udev/rules.d cp udev-qubes-block.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-block.rules cp udev-qubes-usb.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-usb.rules + cp udev-qubes-misc.rules $(DESTDIR)/etc/udev/rules.d/99-qubes-misc.rules mkdir -p $(DESTDIR)/usr/libexec/qubes cp udev-block-add-change $(DESTDIR)/usr/libexec/qubes/ diff --git a/udev/udev-qubes-misc.rules b/udev/udev-qubes-misc.rules new file mode 100644 index 0000000..f953f54 --- /dev/null +++ b/udev/udev-qubes-misc.rules @@ -0,0 +1,5 @@ +# Setup permissions to allow libvchan connections as normal user +KERNEL=="xen/evtchn", MODE="0660", GROUP="qubes" +KERNEL=="xen/gntdev", MODE="0660", GROUP="qubes" +KERNEL=="xen/gntalloc", MODE="0660", GROUP="qubes" +KERNEL=="xen/privcmd", MODE="0660", GROUP="qubes"