Whamcloud - gitweb
LU-10824 llite: make foreign symlinks aware of mount namespaces 09/45609/4
authorJames Simmons <jsimmons@infradead.org>
Thu, 18 Nov 2021 16:39:08 +0000 (11:39 -0500)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:00:21 +0000 (22:00 +0000)
commit942b4e118677af587f66ce74a3b25b0eb184678b
tree9fab691c08c256daed7ac68e3ddbbf04f85b5b04
parentcefabee52586f443bfd5163f6ac0b5e1b56a9db7
LU-10824 llite: make foreign symlinks aware of mount namespaces

Currently the foreign symlink code test if mount namespace is the
same namespace related to the sysfs tree. This doesn't cover all
cases. Linux supports limiting which mounts are visible to a
process with mount namespaces. Lets add this support as well.

Change-Id: Ie87ed45b3c4439e8800c937eb27ed4931989c0f4
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/45609
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_foreign_symlink.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c