Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pidfs: make inodes mutable

Prepare for allowing extended attributes to be set on pidfd inodes by
allowing them to be mutable.

Link: https://lore.kernel.org/20250618-work-pidfs-persistent-v2-11-98f3456fd552@kernel.org
Reviewed-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+2
+2
fs/pidfs.c
··· 827 827 828 828 inode->i_private = data; 829 829 inode->i_flags |= S_PRIVATE | S_ANON_INODE; 830 + /* We allow to set xattrs. */ 831 + inode->i_flags &= ~S_IMMUTABLE; 830 832 inode->i_mode |= S_IRWXU; 831 833 inode->i_op = &pidfs_inode_operations; 832 834 inode->i_fop = &pidfs_file_operations;