Skip to content

O_CREAT without O_NOFOLLOW support? #194

@cyphar

Description

@cyphar

open(O_CREAT) without O_NOFOLLOW allows you to create the target of a dangling symlink. I suspect this is a very rarely-used feature of O_CREAT (and I view it as a mis-feature) but it is something that it is not reasonably possible to emulate as a libpathrs user without going through a lot of hoops.

It's not clear to me whether this is going to be reasonable to implement for the O_PATH resolver (for openat2 it's trivial).

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact/featureAn issue or PR that adds new distinct functionality.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions