Thread (4 messages) 4 messages, 3 authors, 2023-07-27

Re: [PATCH v4 2/5] fs: Add fchmodat2()

From: Andreas Schwab <hidden>
Date: 2023-07-27 16:38:15
Also in: linux-alpha, linux-api, linux-arch, linux-fsdevel, linux-m68k, linux-mips, linux-s390, linuxppc-dev, lkml, sparclinux

Possibly related (same subject, not in this thread)

On Jul 27 2023, David Laight wrote:
From: Aleksa Sarai
quoted
Sent: 25 July 2023 17:36
...
quoted
We almost certainly want to support AT_EMPTY_PATH at the same time.
Otherwise userspace will still need to go through /proc when trying to
chmod a file handle they have.
That can't be allowed.
IIUC, fchmodat2(fd, "", m, AT_EMPTY_PATH) is equivalent to fchmod(fd,
m).  With that, new architectures only need to implement the fchmodat2
syscall to cover all chmod variants.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help