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
F154309174: D56119.id174729.diff
Mon, Apr 27, 6:16 PM
Unknown Object (File)
Thu, Apr 23, 6:18 PM
Unknown Object (File)
Tue, Apr 21, 2:17 AM
Unknown Object (File)
Tue, Apr 21, 2:14 AM
Unknown Object (File)
Sun, Apr 19, 9:40 AM
Unknown Object (File)
Sun, Apr 19, 12:20 AM
Unknown Object (File)
Sat, Apr 18, 9:52 PM
Unknown Object (File)
Sat, Apr 18, 11:15 AM
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