opnsense-src/tests/sys/vmm/Makefile
Cyril Zhang 2d4c599e7d 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
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit a85404906b)
2021-09-01 09:07:42 -04:00

11 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>