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
F175571227: D55379.id172256.diff
Sun, Oct 11, 6:55 PM
F175569423: D55379.diff
Sun, Oct 11, 6:43 PM
Unknown Object (File)
Tue, Oct 6, 10:56 AM
Unknown Object (File)
Thu, Oct 1, 12:45 PM
Unknown Object (File)
Thu, Oct 1, 3:47 AM
Unknown Object (File)
Thu, Oct 1, 3:12 AM
Unknown Object (File)
Tue, Sep 22, 9:52 PM
Unknown Object (File)
Mon, Sep 21, 8:55 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