summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2022-04-04 12:51:58 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2022-04-28 16:31:12 +0200
commitbc70682a497c4f3c968c552e465d1d9948b1ff4c (patch)
tree44f03ede7ed4059fbc9d8c59896f322f94235dfa /fs/overlayfs/ovl_entry.h
parent8bc0095df6618371768ed43fb1c569707d2a1fb4 (diff)
downloadlinux-bc70682a497c4f3c968c552e465d1d9948b1ff4c.tar.gz
linux-bc70682a497c4f3c968c552e465d1d9948b1ff4c.tar.bz2
linux-bc70682a497c4f3c968c552e465d1d9948b1ff4c.zip
ovl: support idmapped layers
Now that overlay is able to take a layers idmapping into account allow overlay mounts to be created on top of idmapped mounts. Cc: <linux-unionfs@vger.kernel.org> Tested-by: Giuseppe Scrivano <gscrivan@redhat.com> Reviewed-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index 469162ca9b21..e1af8f660698 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -92,7 +92,7 @@ static inline struct vfsmount *ovl_upper_mnt(struct ovl_fs *ofs)
static inline struct user_namespace *ovl_upper_mnt_userns(struct ovl_fs *ofs)
{
- return &init_user_ns;
+ return mnt_user_ns(ovl_upper_mnt(ofs));
}
static inline struct ovl_fs *OVL_FS(struct super_block *sb)