]> git.baikalelectronics.ru Git - kernel.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)
commit219d68a08eb85bf290697a97c85b42acd183236f
tree880b54beacb2a7dd021cac02b17bce6897138f9d
parent74b621b97d91ded92c8640d50bd027926527c038
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