Whamcloud - gitweb
LU-17497 obdclass: check upcall incorrect values
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 1 Feb 2024 15:52:22 +0000 (16:52 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 7 Apr 2024 19:15:50 +0000 (19:15 +0000)
commita462a119ec8359a1055ee5df82eb2f2c99c38f49
tree00b231f45951972dd49a02f46a62275db54e0928
parentb6a54f83b4b79c634ff7ebcdf11e708705488518
LU-17497 obdclass: check upcall incorrect values

Identity upcall is set via lctl set_param mdt.*.identity_upcall=xxx,
and rsi upcall is set via lctl set_param sptlrpc.gss.rsi_upcall=xxx.
Possible values are a valid path to an executable, and also INTERNAL
to enable support of supplementary groups from client, or NONE to
disable identity upcall.
Add an upcall cache function that checks the user provided string, to
make sure we do not store an invalid value. And print a message to
stdout to explain the accepted values.

Lustre-change: https://review.whamcloud.com/53878
Lustre-commit: 2153e86541884ef7a5c1697a5d00daf6fa6461a4

Add sanity-sec test_69 to exercise this.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Iaf59e72aa1612f5579db175d8999dcf0053308ed
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53879
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/include/upcall_cache.h
lustre/mdt/mdt_lproc.c
lustre/obdclass/upcall_cache.c
lustre/ptlrpc/gss/lproc_gss.c
lustre/tests/sanity-sec.sh