Whamcloud - gitweb
LU-14538 gss: make namespace optional in lgss_keyring
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 19 Mar 2021 14:46:58 +0000 (15:46 +0100)
committerLi Xi <lixi@ddn.com>
Tue, 13 Apr 2021 13:53:41 +0000 (13:53 +0000)
commitb4c7e999b578039eb61c5e4b7de01460eebfd801
tree80ed5b72ab44b07fa633be87a598918e64ff64eb
parent10b7423c965e1ed35dba8395acde142fc97e74a1
LU-14538 gss: make namespace optional in lgss_keyring

Introduce a new tunable 'sptlrpc.gss.gss_check_upcall_ns' to
make namespace support optional in lgss_keyring.
By default it is set to 1, which means adopt the standard behavior,
consisting in checking caller's namespace and switching namespace
if necessary.
When the tunable is set to 0, lgss_keyring sticks to the current
namespace.

Lustre-change: https://review.whamcloud.com/42112
Lustre-commit: 3f8a6fd7d6d5969560157e37abe1a7d9307cc53f

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ib9d4e47935a718d4aae31fbb0d13f6bc8a4005a5
Reviewed-on: https://review.whamcloud.com/43218
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/gss/gss_internal.h
lustre/ptlrpc/gss/gss_keyring.c
lustre/ptlrpc/gss/lproc_gss.c
lustre/utils/gss/lgss_keyring.c