Linux: Work around kernel bugs in chmod on /proc/self/fd paths [BZ #14578]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 18 Feb 2020 16:52:27 +0000 (17:52 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 18 Feb 2020 16:52:27 +0000 (17:52 +0100)
commita492b1e5ef7ab50c6fdd4e4e9879ea5569ab0a6c
tree5d8e3df1b0ec115d93d47bbf83a5c03a9bed4b84
parentf4349837d93b4dfe9ba09791e280ee2d6c99919f
Linux: Work around kernel bugs in chmod on /proc/self/fd paths [BZ #14578]

It appears that the ability to change symbolic link modes through such
paths is unintended.  On several file systems, the operation fails with
EOPNOTSUPP, even though the symbolic link permissions are updated.
The expected behavior is a failure to update the permissions, without
file system changes.

Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
io/tst-lchmod.c
sysdeps/unix/sysv/linux/fchmodat.c