summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vmd/vmm.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2018-07-13 08:42:49 +0000
committerreyk <reyk@openbsd.org>2018-07-13 08:42:49 +0000
commit476d73d100cee30df751178c194252b2c9cc1cfd (patch)
treedac435934fa8697135f57c42f0cc641074a76574 /usr.sbin/vmd/vmm.c
parentUnused variables. (diff)
downloadwireguard-openbsd-476d73d100cee30df751178c194252b2c9cc1cfd.tar.xz
wireguard-openbsd-476d73d100cee30df751178c194252b2c9cc1cfd.zip
Add "allow instance" option.
This allows users to create VM instances and change desired options, for example a user can be allowed to run a VM with all the pre-configured options but specify an own disk image. (mlarkin@ was fine with iterating over it) OK ccardenas@
Diffstat (limited to 'usr.sbin/vmd/vmm.c')
-rw-r--r--usr.sbin/vmd/vmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmm.c b/usr.sbin/vmd/vmm.c
index 12ce8cc991f..4e96fc25e42 100644
--- a/usr.sbin/vmd/vmm.c
+++ b/usr.sbin/vmd/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.87 2018/07/12 12:04:49 reyk Exp $ */
+/* $OpenBSD: vmm.c,v 1.88 2018/07/13 08:42:49 reyk Exp $ */
/*
* Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org>
@@ -285,7 +285,7 @@ vmm_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg)
IMSG_SIZE_CHECK(imsg, &vmc);
memcpy(&vmc, imsg->data, sizeof(vmc));
ret = vm_register(ps, &vmc, &vm,
- imsg->hdr.peerid, vmc.vmc_uid);
+ imsg->hdr.peerid, vmc.vmc_owner.uid);
vm->vm_tty = imsg->fd;
vm->vm_received = 1;
break;