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, Sep 14, 9:15 PM
Unknown Object (File)
Mon, Sep 14, 9:14 PM
Unknown Object (File)
Mon, Sep 14, 9:11 PM
Unknown Object (File)
Mon, Sep 14, 9:08 PM
Unknown Object (File)
Sun, Sep 6, 4:20 AM
Unknown Object (File)
Wed, Sep 2, 6:41 PM
Unknown Object (File)
Wed, Sep 2, 2:41 PM
Unknown Object (File)
Wed, Sep 2, 1:03 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.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.