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)
Mon, Mar 2, 6:19 PM
Unknown Object (File)
Mon, Mar 2, 11:35 AM
Unknown Object (File)
Sat, Feb 28, 6:18 PM
Unknown Object (File)
Sat, Feb 28, 6:02 PM
Unknown Object (File)
Sat, Feb 28, 3:03 PM
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
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 69925
Build 66808: arc lint + arc unit

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.