Whamcloud - gitweb
LU-17566 mdt: move squash code in new/old_init_ucred 94/54194/7
authorAurelien Degremont <adegremont@nvidia.com>
Tue, 27 Feb 2024 12:20:33 +0000 (13:20 +0100)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Mar 2024 05:55:43 +0000 (05:55 +0000)
commit1730d8093fb36e7957414d314755ae5208da1011
tree112210e780a72b5f4c8ccca45ccf9195c51b379d
parent54619cef6a0151386577ccaca27af0d43d1a6350
LU-17566 mdt: move squash code in new/old_init_ucred

Move the uid/gid squashing code at the same place,
at the bottom of the function, to make code refactoring
simpler later.

The squashing code is mostly clearing suppgids from ucred,
and no code was using between the old and new position in
the function. So that should be pretty safe.

Handle suppgids clearing the same way for both function
and for both UID or GID squashing.

Signed-off-by: Aurelien Degremont <adegremont@nvidia.com>
Change-Id: I29669af26cf68491bf1b6020548116acf318c0c7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54194
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c