freebsd-dev/sys/amd64
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
..
acpica acpi: Fix a repeated comment typo 2021-07-19 17:19:23 +01:00
amd64 fork: Allow ABI to specify fork return values for child. 2021-08-12 11:45:25 +03:00
cloudabi32 fork: Allow ABI to specify fork return values for child. 2021-08-12 11:45:25 +03:00
cloudabi64 fork: Allow ABI to specify fork return values for child. 2021-08-12 11:45:25 +03:00
conf kvm_clock: KVM paravirtual clock support 2021-08-14 15:57:54 +03:00
ia32 amd64: Add MD bits for KMSAN 2021-08-10 21:27:53 -04:00
include x86: cpufunc: Add rdtsc_ordered() 2021-08-14 15:57:53 +03:00
linux linux(4): Remove the unnecessary spaces. 2021-08-12 11:58:33 +03:00
linux32 linux(4): Regen for clone3 system call. 2021-08-12 11:50:22 +03:00
pci
sgx Convert remaining cap_rights_init users to cap_rights_init_one 2021-01-12 13:16:10 +00:00
vmm vmm: Add credential to cdev object 2021-08-18 13:41:33 -04:00
Makefile