Page MenuHomeFreeBSD

vmm: Validate credentials when opening a vmmdev
ClosedPublic

Authored by markj on Aug 30 2024, 2:39 PM.
Tags
None
Referenced Files
F165164435: D46486.diff
Thu, Aug 6, 12:29 PM
Unknown Object (File)
Sat, Jul 25, 4:39 PM
Unknown Object (File)
Mon, Jul 20, 3:06 PM
Unknown Object (File)
Jun 24 2026, 3:56 PM
Unknown Object (File)
Jun 24 2026, 6:58 AM
Unknown Object (File)
Jun 23 2026, 6:05 PM
Unknown Object (File)
Jun 20 2026, 5:20 PM
Unknown Object (File)
Jun 20 2026, 11:51 AM
Subscribers

Details

Summary

Rather than performing privilege checks after a specific VM's device
file is opened, do it once at the time the device file is opened. This
means that one can continue to access a VM via its device fd after
attaching to a jail which does not have vmm enabled, but this seems like
a reasonable semantic to have anyway.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable