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
F162151541: D55379.diff
Fri, Jul 10, 8:23 AM
Unknown Object (File)
Wed, Jul 8, 5:37 AM
Unknown Object (File)
Mon, Jul 6, 4:42 AM
Unknown Object (File)
Wed, Jul 1, 1:55 AM
Unknown Object (File)
Sun, Jun 28, 10:33 AM
Unknown Object (File)
Fri, Jun 19, 11:01 PM
Unknown Object (File)
Thu, Jun 11, 12:59 PM
Unknown Object (File)
Jun 10 2026, 12:30 PM
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