system/qemu-kvm: allow non-root use of vhost-net acceleration

This enables users in the specified group to run VMs using
vhost-net acceleration without need for root privileges.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Adis Nezirovic 2012-02-21 19:27:08 -06:00 committed by Erik Hanson
parent 3bb57f25f2
commit 2e149adaa4
2 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,7 @@
diff -Nur qemu-kvm-0.12.4.orig/kvm/scripts/65-kvm.rules qemu-kvm-0.12.4/kvm/scripts/65-kvm.rules
--- qemu-kvm-0.12.4.orig/kvm/scripts/65-kvm.rules 2010-05-09 06:05:19.000000000 -0500
+++ qemu-kvm-0.12.4/kvm/scripts/65-kvm.rules 2010-06-17 18:05:29.158571682 -0500
@@ -1 +1 @@
diff -Nur qemu-kvm-1.0.orig/kvm/scripts/65-kvm.rules qemu-kvm-1.0/kvm/scripts/65-kvm.rules
--- qemu-kvm-1.0.orig/kvm/scripts/65-kvm.rules 2011-12-04 04:38:06.000000000 -0600
+++ qemu-kvm-1.0/kvm/scripts/65-kvm.rules 2012-02-21 19:22:48.449351958 -0600
@@ -1 +1,2 @@
-KERNEL=="kvm", NAME="%k", GROUP="kvm", MODE="0660"
+KERNEL=="kvm", GROUP="@GROUP@", MODE="0660"
+KERNEL=="vhost-net", GROUP="@GROUP@", MODE="0660"

View file

@ -23,7 +23,7 @@
PRGNAM=qemu-kvm
VERSION=${VERSION:-1.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
KVMGROUP=${KVMGROUP:-users}