]> Git Repo - linux.git/commit
namei: prepare for idmapped mounts
authorChristian Brauner <[email protected]>
Thu, 21 Jan 2021 13:19:33 +0000 (14:19 +0100)
committerChristian Brauner <[email protected]>
Sun, 24 Jan 2021 13:27:18 +0000 (14:27 +0100)
commit6521f8917082928a4cb637eb64b77b5f2f5b30fc
treeece638b5b444e7aff9e6e132d7c0c16788d7583e
parent9fe61450972d3900bffb1dc26a17ebb9cdd92db2
namei: prepare for idmapped mounts

The various vfs_*() helpers are called by filesystems or by the vfs
itself to perform core operations such as create, link, mkdir, mknod, rename,
rmdir, tmpfile and unlink. Enable them to handle idmapped mounts. If the
inode is accessed through an idmapped mount map it into the
mount's user namespace and pass it down. Afterwards the checks and
operations are identical to non-idmapped mounts. 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]>
12 files changed:
drivers/base/devtmpfs.c
fs/cachefiles/namei.c
fs/ecryptfs/inode.c
fs/init.c
fs/namei.c
fs/nfsd/nfs4recover.c
fs/nfsd/vfs.c
fs/overlayfs/dir.c
fs/overlayfs/overlayfs.h
include/linux/fs.h
ipc/mqueue.c
net/unix/af_unix.c
This page took 0.064776 seconds and 4 git commands to generate.