Simulating O_NOFOLLOW (2): Is this other approach safe?
- by Daniel Trebbien
As a follow-up question to this one, I thought of another approach which builds off of @caf's answer for the case where I want to append to file name and create it if it does not exist.
Here is what I came up with:
Create a temporary directory with mode 0700 in a system temporary directory on the same filesystem as file name.
Create an empty,…