Cyril Zhang a85404906b vmm: Add credential to cdev object
Add a credential to the cdev object in sysctl_vmm_create(), then check
that we have the correct credentials in sysctl_vmm_destroy(). This
prevents a process in one jail from opening or destroying the /dev/vmm
file corresponding to a VM in a sibling jail.

Add regression tests.

Reviewed by:	jhb, markj
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D31156
2021-08-18 13:41:33 -04:00
..
2021-08-09 13:28:27 -04:00
2021-08-09 13:28:27 -04:00
2021-08-18 13:41:33 -04:00
2019-11-12 15:51:47 +00:00
2019-08-01 02:16:48 +00:00
2019-08-01 02:16:48 +00:00
2020-02-13 19:03:12 +00:00
2020-11-28 01:16:59 +00:00
2020-11-28 01:16:59 +00:00