Re: Add fchmodat2() - or add a more general syscall?

From
Christian Brauner <brauner@kernel.org>
Date
2023-07-27 10:29:07
Also in
linux-alpha, linux-api, linux-arch, linux-fsdevel, linux-m68k, linux-mips, linux-s390, linux-sh, lkml, sparclinux
Reply to
Eric Biggers, 2023-07-27
On Wed, Jul 26, 2023 at 08:57:10PM -0700, Eric Biggers wrote:
On Tue, Jul 25, 2023 at 04:58:34PM +0100, David Howells wrote:
quoted
Rather than adding a fchmodat2() syscall, should we add a "set_file_attrs()"
syscall that takes a mask and allows you to set a bunch of stuff all in one
go?  Basically, an interface to notify_change() in the kernel that would allow
several stats to be set atomically.  This might be of particular interest to
network filesystems.

David
fchmodat2() is a simple addition that fits well with the existing syscalls.
It fixes an oversight in fchmodat().

IMO we should just add fchmodat2(), and not get sidetracked by trying to add
some super-generalized syscall instead.  That can always be done later.
Agreed.
Thread (45 messages) 45 messages, 12 authors, last reply 2023-07-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help