[PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-11 Thread Andrey Albershteyn
From: Andrey Albershteyn Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode extended attributes/flags. The syscalls take parent directory fd and path to the child together with struct fsxattr. This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference that file don&#

Re: [PATCH v2] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-29 Thread Andrey Albershteyn
On 2025-01-24 10:33:54, Christian Brauner wrote: > On Wed, Jan 22, 2025 at 03:18:34PM +0100, Andrey Albershteyn wrote: > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The syscal

[PATCH v2] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-22 Thread Andrey Albershteyn
From: Andrey Albershteyn Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode extended attributes/flags. The syscalls take parent directory FD and path to the child together with struct fsxattr. This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference that file don&#

Re: [PATCH] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-13 Thread Andrey Albershteyn
On 2025-01-13 12:19:36, Jan Kara wrote: > On Thu 09-01-25 18:45:40, Andrey Albershteyn wrote: > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The syscalls take parent directory F

Re: [PATCH] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-10 Thread Andrey Albershteyn
On 2025-01-09 20:59:45, Arnd Bergmann wrote: > On Thu, Jan 9, 2025, at 18:45, Andrey Albershteyn wrote: > > > > arch/alpha/kernel/syscalls/syscall.tbl | 2 + > > arch/m68k/kernel/syscalls/syscall.tbl | 2 + > > arch/microblaze/kernel/syscalls/syscall.t

[PATCH] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-09 Thread Andrey Albershteyn
From: Andrey Albershteyn Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode extended attributes/flags. The syscalls take parent directory FD and path to the child together with struct fsxattr. This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference that file don&#

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-24 Thread Andrey Albershteyn
_capable via vfs_fileattr_set). > > On Tue, Feb 11, 2025 at 06:22:47PM +0100, Andrey Albershteyn wrote: > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The syscalls take parent directory

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-24 Thread Andrey Albershteyn
On 2025-02-24 12:32:17, Christian Brauner wrote: > On Fri, Feb 21, 2025 at 08:15:24PM +0100, Amir Goldstein wrote: > > On Fri, Feb 21, 2025 at 7:13 PM Darrick J. Wong wrote: > > > > > > On Tue, Feb 11, 2025 at 06:22:47PM +0100, Andrey Albershteyn wrote: >

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-24 Thread Andrey Albershteyn
On 2025-02-24 11:54:34, Jan Kara wrote: > On Tue 11-02-25 18:22:47, Andrey Albershteyn wrote: > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The syscalls take parent directory f

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-18 Thread Andrey Albershteyn
Got more comments below with private mail: On 2025-02-11 18:22:47, Andrey Albershteyn wrote: > From: Andrey Albershteyn > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > extended attributes/flags. The syscalls take parent directory fd and > path to the

Re: [PATCH v3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-02-28 Thread Andrey Albershteyn
On 2025-02-21 20:15:24, Amir Goldstein wrote: > On Fri, Feb 21, 2025 at 7:13 PM Darrick J. Wong wrote: > > > > On Tue, Feb 11, 2025 at 06:22:47PM +0100, Andrey Albershteyn wrote: > > > From: Andrey Albershteyn > > > > > > Introduce getfsxattrat and

[PATCH v4 1/3] lsm: introduce new hooks for setting/getting inode fsxattr

2025-03-21 Thread Andrey Albershteyn
Introduce new hooks for setting and getting filesystem extended attributes on inode (FS_IOC_FSGETXATTR). Cc: seli...@vger.kernel.org Cc: Paul Moore Signed-off-by: Andrey Albershteyn --- fs/ioctl.c| 7 ++- include/linux/lsm_hook_defs.h | 4 include/linux

[PATCH v4 2/3] fs: split fileattr/fsxattr converters into helpers

2025-03-21 Thread Andrey Albershteyn
This will be helpful for get/setfsxattrat syscalls to convert between fileattr and fsxattr. Signed-off-by: Andrey Albershteyn --- fs/ioctl.c | 32 +--- include/linux/fileattr.h | 2 ++ 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/fs

[PATCH v4 0/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-21 Thread Andrey Albershteyn
ilesystem" check - Use CLASS() instead of directly calling fdget/fdput - Link to v2: https://lore.kernel.org/r/20250122-xattrat-syscall-v2-1-5b360d4fb...@kernel.org v1: https://lore.kernel.org/linuxppc-dev/20250109174540.893098-1-aalbe...@kernel.org/ Previous discussion: https://lore.ker

[PATCH v4 3/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-21 Thread Andrey Albershteyn
From: Andrey Albershteyn Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode extended attributes/flags. The syscalls take parent directory fd and path to the child together with struct fsxattr. This is an alternative to FS_IOC_FSSETXATTR ioctl with a difference that file don&#

Re: [PATCH v4 1/3] lsm: introduce new hooks for setting/getting inode fsxattr

2025-03-27 Thread Andrey Albershteyn
On 2025-03-24 20:27:02, Mickaël Salaün wrote: > On Fri, Mar 21, 2025 at 05:32:25PM -0400, Paul Moore wrote: > > On Mar 21, 2025 Andrey Albershteyn wrote: > > > > > > Introduce new hooks for setting and getting filesystem extended > > > attributes on inode

Re: [PATCH v4 3/3] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-03-27 Thread Andrey Albershteyn
On 2025-03-23 09:56:25, Amir Goldstein wrote: > On Fri, Mar 21, 2025 at 8:49 PM Andrey Albershteyn > wrote: > > > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The s