aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Christian Brauner <christian.brauner@ubuntu.com> 2021-05-11 16:30:15 +0200
committerGravatar Christian Brauner <christian.brauner@ubuntu.com> 2021-05-12 14:13:16 +0200
commit2ca4dcc4909d787ee153272f7efc2bff3b498720 (patch)
tree730c43aa2706393f338200da6eb1ba333487d244 /arch
parentLinux 5.13-rc1 (diff)
downloadlinux-2ca4dcc4909d787ee153272f7efc2bff3b498720.tar.gz
linux-2ca4dcc4909d787ee153272f7efc2bff3b498720.tar.bz2
linux-2ca4dcc4909d787ee153272f7efc2bff3b498720.zip
fs/mount_setattr: tighten permission checks
We currently don't have any filesystems that support idmapped mounts which are mountable inside a user namespace. That was a deliberate decision for now as a userns root can just mount the filesystem themselves. So enforce this restriction explicitly until there's a real use-case for this. This way we can notice it and will have a chance to adapt and audit our translation helpers and fstests appropriately if we need to support such filesystems. Cc: Christoph Hellwig <hch@lst.de> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: stable@vger.kernel.org CC: linux-fsdevel@vger.kernel.org Suggested-by: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions