Page MenuHomeFreeBSD

vmm: Restore the ability to create VMs as root in a jail
ClosedPublic

Authored by markj on Mar 28 2026, 8:40 AM.
Tags
None
Referenced Files
F173886354: D56119.id174423.diff
Tue, Sep 29, 3:11 AM
Unknown Object (File)
Fri, Sep 11, 11:18 AM
Unknown Object (File)
Thu, Sep 3, 9:00 PM
Unknown Object (File)
Mon, Aug 31, 6:24 AM
Unknown Object (File)
Aug 29 2026, 6:36 AM
Unknown Object (File)
Aug 26 2026, 3:32 AM
Unknown Object (File)
Aug 25 2026, 9:02 AM
Unknown Object (File)
Aug 21 2026, 8:52 PM
Subscribers

Details

Summary

The new PRIV_VMM_CREATE and DESTROY permissions should be allowed by
jails, so need to be added to the list in prison_priv_check(). Then,
modify vmmdev_create() to verify that the jail was created with the
allow.vmm flag.

Rename vmm_priv_check() to vmm_jail_priv_check() to make the function's
purpose more clear.

Reported by: novel
Fixes: d4c05edd410e ("vmm: Add privilege checks to vmmctl operations")

Diff Detail

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