]> asedeno.scripts.mit.edu Git - linux.git/commit
NFS: When mounting, don't share filesystems between different user namespaces
authorTrond Myklebust <trondmy@gmail.com>
Wed, 24 Apr 2019 21:46:49 +0000 (17:46 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 26 Apr 2019 21:39:42 +0000 (17:39 -0400)
commit3b7eb5e35d0f55541452e91ca66798c16a81ad4a
tree880b54beacb2a7dd021cac02b17bce6897138f9d
parentc207db2f5da5e37e284d87d5196dcf967e84956c
NFS: When mounting, don't share filesystems between different user namespaces

If two different containers that share the same network namespace attempt
to mount the same filesystem, we should not allow them to share the same
super block if they do not share the same user namespace, since the
user mappings on the wire will need to differ.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c