Re: [PATCH] vfs: add fchmodat2 syscall

From: Rich Felker
Date: Thu Sep 10 2020 - 15:13:51 EST

On Thu, Sep 10, 2020 at 04:18:28PM +0100, Al Viro wrote:
> On Thu, Sep 10, 2020 at 10:23:37AM -0400, Rich Felker wrote:
> > It was determined (see glibc issue #14578 and commit a492b1e5ef) that,
> > on some filesystems, performing chmod on the link itself produces a
> > change in the inode's access mode, but returns an EOPNOTSUPP error.
> Which filesystem types are those?

It's been a long time and I don't know if the details were recorded.
It was reported for xfs but I believe we later found it happening for
others. See:

and especially:

where Christoph seems to have endorsed the approach in my patch. I'm
fine with doing it differently if you'd prefer, though.