# Re: Add a new fchmodat4() syscall, v2

- From: Florian Weimer \<hidden\>
- Date: 2020-06-09 13:52:59 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2020/06/181723
- Thread: https://ratatoskr.run/linux-fsdevel/2020/06/181723/t.md

```text
* Palmer Dabbelt:

> This patch set adds fchmodat4(), a new syscall. The actual
> implementation is super simple: essentially it's just the same as
> fchmodat(), but LOOKUP_FOLLOW is conditionally set based on the flags.
> I've attempted to make this match "man 2 fchmodat" as closely as
> possible, which says EINVAL is returned for invalid flags (as opposed to
> ENOTSUPP, which is currently returned by glibc for AT_SYMLINK_NOFOLLOW).
> I have a sketch of a glibc patch that I haven't even compiled yet, but
> seems fairly straight-forward:

What's the status here?  We'd really like to see this system call in the
kernel because our emulation in glibc has its problems (especially if
/proc is not mounted).

Thanks,
Florian

```
