summaryrefslogtreecommitdiff
path: root/qemu.in
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-08-31 01:56:41 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-08-31 01:58:37 -0400
commit895464f92f960725cf45f427dfeefcab9bce224e (patch)
tree7c8b456d6f6d8ab3a44cd2a8289d7fe934b84fdf /qemu.in
parent0ce80f13d5122a92eec280365deda0be7e3418da (diff)
Drop privileges
Diffstat (limited to 'qemu.in')
-rwxr-xr-xqemu.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/qemu.in b/qemu.in
index 566cacf..c3385f8 100755
--- a/qemu.in
+++ b/qemu.in
@@ -7,10 +7,13 @@ numactl=()
source "@pkgconfdir@/$1"
args+=(
-name "$1",debug-threads=on
+ -runas "$USER"
-pidfile "@runstatedir@/qemu-$1/pid"
+
-vnc unix:"@runstatedir@/qemu-$1/vnc.sock"
-monitor unix:"@runstatedir@/qemu-$1/monitor.sock",server,nowait
-serial file:"/dev/stdout"
+
-daemonize
)