aboutsummaryrefslogtreecommitdiffstats
path: root/fs/debugfs/inode.c
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2021-01-21 13:19:41 +0000
committerChristian Brauner <[email protected]>2021-01-24 13:27:19 +0000
commit435ac6214e00eab191296cd6cfdc316aa07e7794 (patch)
tree0ea0d6cd7fd15a870e9b12478316c2b1090da7a2 /fs/debugfs/inode.c
parentioctl: handle idmapped mounts (diff)
downloadkernel-435ac6214e00eab191296cd6cfdc316aa07e7794.tar.gz
kernel-435ac6214e00eab191296cd6cfdc316aa07e7794.zip
would_dump: handle idmapped mounts
When determining whether or not to create a coredump the vfs will verify that the caller is privileged over the inode. Make the would_dump() helper handle idmapped mounts by passing down the mount's user namespace of the exec file. If the initial user namespace is passed nothing changes so non-idmapped mounts will see identical behavior as before. Link: https://lore.kernel.org/r/[email protected] Cc: Christoph Hellwig <[email protected]> Cc: David Howells <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/debugfs/inode.c')
0 files changed, 0 insertions, 0 deletions