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, May 13, 10:13 PM
Unknown Object (File)
Wed, May 13, 8:31 PM
Unknown Object (File)
Wed, May 13, 8:10 PM
Unknown Object (File)
Wed, May 13, 7:40 PM
Unknown Object (File)
Mon, May 11, 8:27 AM
Unknown Object (File)
Mon, Apr 27, 12:34 PM
Unknown Object (File)
Sun, Apr 26, 4:40 PM
Unknown Object (File)
Wed, Apr 22, 3:19 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.