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
F170978587: D55379.id.diff
Mon, Sep 7, 11:48 PM
Unknown Object (File)
Sun, Sep 6, 5:56 PM
Unknown Object (File)
Sun, Sep 6, 10:13 AM
Unknown Object (File)
Sat, Sep 5, 9:58 PM
Unknown Object (File)
Fri, Sep 4, 7:54 AM
Unknown Object (File)
Thu, Sep 3, 12:49 PM
Unknown Object (File)
Thu, Sep 3, 12:49 PM
Unknown Object (File)
Thu, Aug 27, 5:58 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 Passed
Unit
No Test Coverage
Build Status
Buildable 70786
Build 67669: arc lint + arc unit