Commit 78b48b2e authored by Jonas Smedegaard's avatar Jonas Smedegaard

Tune qemu-system-common postinst to permit kvm group access to…

Tune qemu-system-common postinst to permit kvm group access to qemu-bridge-helper. Recommend libcap2-bin. Closes: Bug#765936. Thanks to Guido Günther.
parent b8567ca2
......@@ -189,6 +189,8 @@ Multi-Arch: foreign
Pre-Depends: adduser
Replaces: qemu-system-data (<< 1:3.1+dfsg-1~)
Depends: ${misc:Depends}, ${shlibs:Depends},
# to permit kvm group access to qemu-bridge-helper
libcap2-bin,
# to fix wrong acl for newly created device node on ubuntu:
:ubuntu: acl
Description: QEMU full system emulation binaries (common files)
......
......@@ -9,6 +9,14 @@ if [ "$1" = configure ] ; then
fi
fi
# permit kvm group access to qemu-bridge-helper
# (See #765936)
chgrp kvm /usr/lib/qemu/qemu-bridge-helper
chmod 0660 /usr/lib/qemu/qemu-bridge-helper
if which setcap >/dev/null; then
setcap cap_net_admin+ep /usr/lib/qemu/qemu-bridge-helper
fi
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment