Whamcloud - gitweb
LU-14538 gss: make namespace optional in lgss_keyring 12/42112/2
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 19 Mar 2021 14:46:58 +0000 (15:46 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 03:02:56 +0000 (03:02 +0000)
commit3f8a6fd7d6d5969560157e37abe1a7d9307cc53f
tree5d2e8edc2c3aff51eff8916cb4697616dabb03c9
parent9cc7128b9b2bf444657dac6765decf9fb56aee8d
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.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ib9d4e47935a718d4aae31fbb0d13f6bc8a4005a5
Reviewed-on: https://review.whamcloud.com/42112
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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