Re: vmd(8): send correct response on unpause error

2021-04-06 Thread Mike Larkin
On Fri, Apr 02, 2021 at 07:14:34PM -0400, Dave Voutila wrote: > If vmctl(8) sends an unpause request for a vm that doesn't exist, vmd(8) > should be responding with the IMSG_VMDOP_UNPAUSE_VM_RESPONSE imsg_type > with an ENOENT error code. (Similarly if the request comes from a user > without

vmd(8): send correct response on unpause error

2021-04-02 Thread Dave Voutila
If vmctl(8) sends an unpause request for a vm that doesn't exist, vmd(8) should be responding with the IMSG_VMDOP_UNPAUSE_VM_RESPONSE imsg_type with an ENOENT error code. (Similarly if the request comes from a user without permissions to unpause, the error is EPERM but the imsg_type is wrong.)