summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_iops.c
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-01-21 14:19:41 +0100
committerChristian Brauner <christian.brauner@ubuntu.com>2021-01-24 14:27:19 +0100
commit435ac6214e00eab191296cd6cfdc316aa07e7794 (patch)
tree0ea0d6cd7fd15a870e9b12478316c2b1090da7a2 /fs/xfs/xfs_iops.c
parent0f5d220b42fba0ab17a7353787be3c29bea92e30 (diff)
downloadlinux-stable-435ac6214e00eab191296cd6cfdc316aa07e7794.tar.gz
linux-stable-435ac6214e00eab191296cd6cfdc316aa07e7794.tar.bz2
linux-stable-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/20210121131959.646623-23-christian.brauner@ubuntu.com Cc: Christoph Hellwig <hch@lst.de> Cc: David Howells <dhowells@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'fs/xfs/xfs_iops.c')
0 files changed, 0 insertions, 0 deletions