Check the disk/kernel/cdrom file permissions after openening the fd.
authorreyk <reyk@openbsd.org>
Fri, 13 Jul 2018 10:26:57 +0000 (10:26 +0000)
committerreyk <reyk@openbsd.org>
Fri, 13 Jul 2018 10:26:57 +0000 (10:26 +0000)
commita882c86a5b5b202cf1ed6c410d93fd52b778cf4e
treef7b8a3d470d8da7c3ef76f089d71deece389ed3a
parent03249988e9bbffb48a56883955bda316855561b9
Check the disk/kernel/cdrom file permissions after openening the fd.

This prevents time of TOCTOU attacks for instances.

OK mlarkin@
usr.sbin/vmd/config.c
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h