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)
Wed, Feb 25, 9:12 AM
Unknown Object (File)
Mon, Feb 23, 7:37 PM
Unknown Object (File)
Fri, Feb 20, 12:07 PM
Unknown Object (File)
Fri, Feb 20, 12:07 PM
Unknown Object (File)
Wed, Feb 18, 12:15 PM
Unknown Object (File)
Sun, Feb 8, 1:33 PM
Unknown Object (File)
Fri, Jan 30, 10:46 PM
Unknown Object (File)
Jan 25 2026, 6:25 PM
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.Mon, Feb 16, 3:45 PM
This revision is now accepted and ready to land.Thu, Feb 19, 5:14 PM
This revision was automatically updated to reflect the committed changes.