Page MenuHomeFreeBSD

bhyveload: simplify cb_open() and eliminate minor TOCTOU
ClosedPublic

Authored by kevans on Thu, Feb 19, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 12, 12:43 AM
Unknown Object (File)
Fri, Mar 6, 11:20 PM
Unknown Object (File)
Fri, Mar 6, 1:43 PM
Unknown Object (File)
Wed, Mar 4, 5:05 AM
Unknown Object (File)
Tue, Mar 3, 12:38 PM
Unknown Object (File)
Fri, Feb 27, 1:52 PM
Unknown Object (File)
Wed, Feb 25, 8:16 PM
Unknown Object (File)
Wed, Feb 25, 7:16 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