Page MenuHomeFreeBSD

userboot: bump the interface to v6, add an accept_interpreter callback
ClosedPublic

Authored by kevans on Aug 10 2026, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 9, 9:52 PM
Unknown Object (File)
Mon, Sep 7, 6:07 AM
Unknown Object (File)
Sun, Sep 6, 3:54 PM
Unknown Object (File)
Sun, Sep 6, 3:42 AM
Unknown Object (File)
Sat, Sep 5, 1:48 PM
Unknown Object (File)
Sat, Sep 5, 8:08 AM
Unknown Object (File)
Thu, Sep 3, 8:20 AM
Unknown Object (File)
Tue, Sep 1, 5:44 PM

Details

Summary

If an explicit loader wasn't requested, then bhyveload(8) maintains a
/boot handle that it can use for swapping to a different flavor. This
means that we expose all of the host /boot to the sandbox for the
duration of script execution.

Add a callback to ack that we're OK with the interpreter so that
bhyveload(8) can release the bootfd. This is worth doing because it's
prior to guest script execution, so we're still running a reasonably
untainted process.

Diff Detail

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