linux/arch/alpha/kernel
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: linux-api@vger.kernel.org
CC: linux-fsdevel@vger.kernel.org
CC: linux-xfs@vger.kernel.org
Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
Link: https://lore.kernel.org/20250630-xattrat-syscall-v6-6-c4e3bc35227b@kernel.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-07-02 17:05:17 +02:00
..
syscalls fs: introduce file_getattr and file_setattr syscalls 2025-07-02 17:05:17 +02:00
.gitignore
asm-offsets.c alpha: replace hardcoded stack offsets with autogenerated ones 2025-02-14 14:03:40 -05:00
audit.c
bugs.c alpha: missing includes 2024-05-03 22:09:30 +02:00
console.c alpha: missing includes 2024-05-03 22:09:30 +02:00
core_cia.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
core_irongate.c alpha: missing includes 2024-05-03 22:09:30 +02:00
core_marvel.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
core_mcpcia.c
core_polaris.c
core_t2.c alpha: jensen, t2 - make __EXTERN_INLINE same as for the rest 2024-05-03 22:09:37 +02:00
core_titan.c
core_tsunami.c
core_wildfire.c
entry.S alpha: align stack for page fault and user unaligned trap handlers 2025-02-14 14:06:04 -05:00
err_common.c
err_ev6.c
err_ev7.c
err_impl.h
err_marvel.c
err_titan.c
es1888.c
gct.c
head.S
io.c
irq_alpha.c
irq_i8259.c alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
irq_impl.h
irq_pyxis.c
irq_srm.c
irq.c alpha: missing includes 2024-05-03 22:09:30 +02:00
machvec_impl.h alpha: drop pre-EV56 support 2024-05-06 12:05:00 +02:00
Makefile arch: use always-$(KBUILD_BUILTIN) for vmlinux.lds 2025-06-07 14:38:07 +09:00
module.c
osf_sys.c execve fix for v6.14-rc2 2025-02-08 13:59:24 -08:00
pc873xx.c
pc873xx.h
pci_impl.h alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
pci_iommu.c alpha: Use str_yes_no() helper in pci_dac_dma_supported() 2025-02-14 14:06:41 -05:00
pci-sysfs.c sysfs: treewide: constify attribute callback of bin_attribute::mmap() 2024-11-05 14:00:28 +01:00
pci.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
perf_event.c alpha/perf: Remove driver-specific throttle support 2025-05-21 13:57:45 +02:00
process.c
proto.h alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
ptrace.c
rtc.c
setup.c alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
signal.c
smc37c93x.c alpha: missing includes 2024-05-03 22:09:30 +02:00
smc37c669.c alpha: missing includes 2024-05-03 22:09:30 +02:00
smp.c alpha: missing includes 2024-05-03 22:09:30 +02:00
srm_env.c
srmcons.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sys_alcor.c
sys_cabriolet.c alpha: cabriolet: remove EV5 CPU support 2024-05-03 22:10:03 +02:00
sys_dp264.c
sys_eiger.c
sys_marvel.c
sys_miata.c
sys_mikasa.c alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
sys_nautilus.c alpha: missing includes 2024-05-03 22:09:30 +02:00
sys_noritake.c alpha: remove LCA and APECS based machines 2024-05-03 22:09:59 +02:00
sys_rawhide.c
sys_ruffian.c
sys_rx164.c
sys_sable.c alpha: sable: remove early machine support 2024-05-03 22:09:55 +02:00
sys_sx164.c
sys_takara.c
sys_titan.c
sys_wildfire.c
systbls.S
termios.c
time.c
traps.c alpha: align stack for page fault and user unaligned trap handlers 2025-02-14 14:06:04 -05:00
vmlinux.lds.S