vmctl(8): remove unveil from disk image creation routines
authordv <dv@openbsd.org>
Wed, 12 May 2021 20:13:00 +0000 (20:13 +0000)
committerdv <dv@openbsd.org>
Wed, 12 May 2021 20:13:00 +0000 (20:13 +0000)
commit3538c82e367aad78e6d4a3460e0504649058f387
tree77473a9f2f4ac2478a3d16b13cc9c550efd7ba95
parent1026011a2a143056d00465d714aaf0118eeb8acf
vmctl(8): remove unveil from disk image creation routines

James Cook reported an issue creating images from qcow2 disks that
contained base images. Initial approach suggested was to replace the
use of realpath(3), but since this is common code used in vmd(8) the
better option is to just remove the use of unveil(1) in vmctl. (It was
added very early in vmctl's development before support for disk
conversion was added.)

This does not change existing unveil usage in vmctl for things like the
control socket or the serial console. There's no change to vmd either.

Discussed with and OK from mlarkin@
usr.sbin/vmctl/main.c
usr.sbin/vmctl/vmctl.c