mirror of
https://github.com/opnsense/src.git
synced 2026-05-27 20:02:43 -04:00
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)
11 lines
153 B
Makefile
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>
|