Whamcloud - gitweb
DDN-4630 sec: cleanup grouplist alloc for INTERNAL id upcall
authorSebastien Buisson <sbuisson@ddn.com>
Thu, 8 Feb 2024 17:17:52 +0000 (18:17 +0100)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 14 Feb 2024 19:20:00 +0000 (19:20 +0000)
commita2cf5ac8a9c772ed5247868954846b521e98e983
tree66b75d2c14d8b574bf94166d741c8c20e56e3281
parent96fca2a176ae855661c2636503f9474b9748a672
DDN-4630 sec: cleanup grouplist alloc for INTERNAL id upcall

With the INTERNAL identity upcall, we are using supplementary groups
provided by the client, by building an array of gid_t.
Cleanup this group list allocation, and make sure the size returned
matches the actual size of the allocated array.

Fixes: 4515e5365f ("LU-17015 build: rework upcall cache")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I72cdfc6b76bfd9c2832a5d5e5f72c3aa45cf1efe
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53979
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/obdclass/upcall_cache_internal.c