Page MenuHomeFreeBSD

bhyveload: simplify cb_open() and eliminate minor TOCTOU
ClosedPublic

Authored by kevans on Feb 19 2026, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 17, 6:18 PM
Unknown Object (File)
Sun, May 17, 6:09 PM
Unknown Object (File)
Fri, May 15, 7:13 AM
Unknown Object (File)
Thu, May 14, 5:46 AM
Unknown Object (File)
Thu, May 14, 2:51 AM
Unknown Object (File)
Mon, May 11, 1:20 PM
Unknown Object (File)
Sun, May 10, 4:27 AM
Unknown Object (File)
Sun, May 10, 4:19 AM
Subscribers

Details

Summary

It's not at all clear why I wrote it like this, but we can do better.

I wouldn't think this really has any meaningful security implications
since the hierarchy in question can't really be modified by the guest
scripts, but it would seem to make it a little more robust.

Fixes: 6779d44bd878e3c ("bhyveload: use a dirfd to support -h")

Diff Detail

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