[go: up one dir, main page]

|
|
Log in / Subscribe / Register

The curious case of O_DIRECTORY|O_CREAT

The curious case of O_DIRECTORY|O_CREAT

Posted Mar 28, 2023 16:02 UTC (Tue) by mb (subscriber, #50428)
Parent article: The curious case of O_DIRECTORY|O_CREAT

I think it would be a good idea to add the O_DIRECTORY|O_CREAT combination to a unit test as well.


to post comments

The curious case of O_DIRECTORY|O_CREAT

Posted Mar 28, 2023 17:37 UTC (Tue) by brauner (subscriber, #109349) [Link]

See my request for this in the thread and the discussion following that. TL;DR we'll have some as part of xfstests.

The curious case of O_DIRECTORY|O_CREAT

Posted Mar 28, 2023 18:50 UTC (Tue) by iabervon (subscriber, #722) [Link]

I'd also be interested in fuzz tests that report if a file gets created by open() without an fd for it being returned. If you pick a random combination of flags and permissions and starting state, I'm not sure what should happen, but I don't think that's ever an expected result.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds