Page MenuHomeFreeBSD

vmm: Add privilege checks to vmmctl operations
ClosedPublic

Authored by markj on Jan 16 2026, 4:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 7, 9:00 AM
Unknown Object (File)
Sun, Apr 5, 2:56 AM
Unknown Object (File)
Mar 2 2026, 6:19 PM
Unknown Object (File)
Mar 2 2026, 11:35 AM
Unknown Object (File)
Feb 28 2026, 6:18 PM
Unknown Object (File)
Feb 28 2026, 6:02 PM
Unknown Object (File)
Feb 28 2026, 3:03 PM
Unknown Object (File)
Feb 25 2026, 9:12 AM
Subscribers

Details

Summary

In preparation for supporting creation of VMs by unprivileged users, add
some restrictions:

  • Disallow creation of non-transient VMs by unprivileged users. That is, if an unprivileged user creates a VM, the VM must be destroyed automatically once the last fd referencing it is gone.
  • Disallow destroying VMs created by a different user, unless the caller has the PRIV_VMM_DESTROY privilege.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jan 20 2026, 2:29 PM
This revision now requires review to proceed.Feb 16 2026, 3:45 PM
This revision is now accepted and ready to land.Feb 19 2026, 5:14 PM
This revision was automatically updated to reflect the committed changes.