[PATCH 2/2] Define syscall number for fchmodat4

2015-05-10 Thread William Orr
--- arch/x86/syscalls/syscall_32.tbl | 1 + arch/x86/syscalls/syscall_64.tbl | 1 + include/uapi/asm-generic/unistd.h | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/x86/syscalls/syscall_32.tbl b/arch/x86/syscalls/syscall_32.tbl index ef8187f..cc8ada8 100644 --- a/ar

[PATCH 1/2] Implement fchmodat4 syscall

2015-05-10 Thread William Orr
Adds fchmodat4 which more closely matches POSIX by taking 4 arguments, including the flags argument. flags are the same as fchownat(2), implementing both AT_SYMLINK_NOFOLLOW and AT_EMPTY_PATH Based heavily off of Andrew Ayer's patch from 2012. --- fs/open.c| 19 +--

[PATCH] Implement fchmodat4 system call

2015-05-10 Thread William Orr
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 -- To u