Messages in this thread | | | From | William Orr <> | Subject | [PATCH] Implement fchmodat4 system call | Date | Sun, 10 May 2015 19:07:20 -0700 |
| |
Hey,
Currently, Linux's fchmodat(2) doesn't honor the flags argument. To bring it more in-line with POSIX and other implementations, this patch adds fchmodat4, which honors the flags argument, and implements the same flags as fchownat(2).
This makes it possible to chmod a file without following symlinks, without having to call open(2) on a file with O_NOFOLLOW. This is heavily based off of Andrew Ayer's work in 2012, and is sent with his permission. Let me know if this can be applied.
Please CC me, since I'm not subscribed to this list.
Thanks, William Orr
| |