Re: [PATCH 2/4] Expose O_PATHSTATIC to userspace

2019-02-12 Thread Demi M. Obenour
On 2/12/19 3:18 PM, Andreas Dilger wrote: > On Feb 12, 2019, at 7:54 AM, demioben...@gmail.com wrote: >> >> From: "Demi M. Obenour" >> >> This adds the file open flag O_PATHSTATIC, which ensures that symbolic >> links are *never* followed, even in path components other than the last. >> This is

Re: [PATCH 2/4] Expose O_PATHSTATIC to userspace

2019-02-12 Thread Andreas Dilger
On Feb 12, 2019, at 7:54 AM, demioben...@gmail.com wrote: > > From: "Demi M. Obenour" > > This adds the file open flag O_PATHSTATIC, which ensures that symbolic > links are *never* followed, even in path components other than the last. > This is distinct from O_NOFOLLOW, which only prevents

[PATCH 2/4] Expose O_PATHSTATIC to userspace

2019-02-12 Thread demiobenour
From: "Demi M. Obenour" This adds the file open flag O_PATHSTATIC, which ensures that symbolic links are *never* followed, even in path components other than the last. This is distinct from O_NOFOLLOW, which only prevents symlinks in the *last* component from being followed. This is useful for