Skip to content

Commit f769b3d

Browse files
committed
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>
1 parent c007d95 commit f769b3d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/pidfs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ static int pidfs_init_inode(struct inode *inode, void *data)
827827

828828
inode->i_private = data;
829829
inode->i_flags |= S_PRIVATE | S_ANON_INODE;
830+
/* We allow to set xattrs. */
831+
inode->i_flags &= ~S_IMMUTABLE;
830832
inode->i_mode |= S_IRWXU;
831833
inode->i_op = &pidfs_inode_operations;
832834
inode->i_fop = &pidfs_file_operations;

0 commit comments

Comments
 (0)