Whamcloud - gitweb
LU-17497 obdclass: check upcall incorrect values 78/53878/8
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 1 Feb 2024 15:52:22 +0000 (16:52 +0100)
committerOleg Drokin <green@whamcloud.com>
Tue, 2 Apr 2024 21:01:18 +0000 (21:01 +0000)
commit2153e86541884ef7a5c1697a5d00daf6fa6461a4
tree345d4aa9dc8e3ba21a0d7144fe61b1e73fb9c3cd
parent1c25cb7a3e3db17a65a8560915a0b79ada05a351
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 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.

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/fs/lustre-release/+/53878
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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