Files
linux/include/uapi/linux
Andrey Albershteyn be7efb2d20 fs: introduce file_getattr and file_setattr syscalls
Introduce file_getattr() and file_setattr() syscalls to manipulate inode
extended attributes. The syscalls takes pair of file descriptor and
pathname. Then it operates on inode opened accroding to openat()
semantics. The struct file_attr is passed to obtain/change extended
attributes.

This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference
that file don't need to be open as we can reference it with a path
instead of fd. By having this we can manipulated inode extended
attributes not only on regular files but also on special ones. This
is not possible with FS_IOC_FSSETXATTR ioctl as with special files
we can not call ioctl() directly on the filesystem inode using fd.

This patch adds two new syscalls which allows userspace to get/set
extended inode attributes on special files by using parent directory
and a path - *at() like syscall.

CC: [email protected]
CC: [email protected]
CC: [email protected]
Signed-off-by: Andrey Albershteyn <[email protected]>
Link: https://lore.kernel.org/[email protected]
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
2025-07-02 17:05:17 +02:00
..
2024-07-31 13:56:00 +02:00
…
…
2024-04-15 13:42:38 +02:00
…
…
2025-02-08 15:16:29 +00:00
…
…
…
…
2025-01-13 07:36:29 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-02-05 13:22:04 +09:00
…
…
…
2024-06-11 12:57:49 -05:00
…
…
…
…
…
…
…
…
2025-02-12 02:29:30 +00:00
…
…
…
…
…
…
…
…
…
2025-05-03 12:02:09 +02:00
…
…
2024-05-07 01:35:57 +02:00
…
…
…
…
…
2024-08-29 10:39:37 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-04-01 10:49:28 +01:00
…
…
…
…
…
…
2024-08-26 09:37:23 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-06-01 07:28:21 +02:00
…
2024-09-01 20:26:05 -07:00
…
…
…
2025-04-17 11:09:10 +02:00
…
…
…
…
…
…
2024-08-19 22:36:26 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2024-09-06 08:31:40 -06:00
…
…
…
…
2025-05-13 11:12:48 +02:00
…
…
2024-08-12 17:50:34 -07:00
…
…
…
…
…
2025-01-08 13:18:11 +01:00
…
…
…
…
…
2025-04-17 12:30:02 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-02-25 18:14:03 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-05-21 13:41:03 +02:00
…
…
…
…
…
2025-04-17 12:30:02 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-04-14 09:51:31 -04:00
2025-05-27 10:27:54 -04:00
…
…
…
…
…
…