mirror of
https://github.com/torvalds/linux.git
synced 2025-12-01 07:26:02 +07:00
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>
This commit is contained in:
@@ -827,6 +827,8 @@ static int pidfs_init_inode(struct inode *inode, void *data)
|
||||
|
||||
inode->i_private = data;
|
||||
inode->i_flags |= S_PRIVATE | S_ANON_INODE;
|
||||
/* We allow to set xattrs. */
|
||||
inode->i_flags &= ~S_IMMUTABLE;
|
||||
inode->i_mode |= S_IRWXU;
|
||||
inode->i_op = &pidfs_inode_operations;
|
||||
inode->i_fop = &pidfs_file_operations;
|
||||
|
||||
Reference in New Issue
Block a user