From aa1babada1b53355d5b6d4266f8039d8d0c926a2 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 3 Nov 2012 01:57:36 +0100 Subject: [PATCH] vm: setup device permission to allow non-root vchan servers This will allow to start pulseaudio as normal user and get rid of preloaded library. --- vm-init.d/qubes_core | 2 ++ vm-systemd/qubes-sysinit.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/vm-init.d/qubes_core b/vm-init.d/qubes_core index c5fe5d2..4830587 100755 --- a/vm-init.d/qubes_core +++ b/vm-init.d/qubes_core @@ -17,6 +17,8 @@ start() # Set permissions to /proc/xen/xenbus, so normal user can use xenstore-read chmod 666 /proc/xen/xenbus + # Set permissions to files needed to listen at vchan + chmod 666 /proc/u2mfn /dev/xen/evtchn mkdir -p /var/run/xen-hotplug diff --git a/vm-systemd/qubes-sysinit.sh b/vm-systemd/qubes-sysinit.sh index b054407..f0b098a 100755 --- a/vm-systemd/qubes-sysinit.sh +++ b/vm-systemd/qubes-sysinit.sh @@ -25,6 +25,8 @@ mkdir -p /var/run/xen-hotplug # Set permissions to /proc/xen/xenbus, so normal user can use xenstore-read chmod 666 /proc/xen/xenbus +# Set permissions to files needed to listen at vchan +chmod 666 /proc/u2mfn /dev/xen/evtchn # Set default services depending on VM type TYPE=`$XS_READ qubes_vm_type 2> /dev/null`