a85404906b
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
12 lines
153 B
Makefile
12 lines
153 B
Makefile
PACKAGE= tests
|
|
|
|
TESTSDIR= ${TESTSBASE}/sys/vmm
|
|
|
|
BINDIR= ${TESTSDIR}
|
|
|
|
ATF_TESTS_SH+= vmm_cred_jail
|
|
|
|
${PACKAGE}FILES+= utils.subr
|
|
|
|
.include <bsd.test.mk>
|