https://bugs.kde.org/show_bug.cgi?id=510416

--- Comment #1 from mcer...@redhat.com ---
https://lwn.net/Articles/1027795/

fs/file_attr.c

commit be7efb2d20d67f334a7de2aef77ae6c69367e646
Author: Andrey Albershteyn <aalbe...@redhat.com>
Date:   Mon Jun 30 18:20:16 2025 +0200

    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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to