Whamcloud - gitweb
LU-13498 sec: fix credentials with nodemap and SSK 40/40140/2
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 5 Oct 2020 12:14:09 +0000 (21:14 +0900)
committerOleg Drokin <green@whamcloud.com>
Mon, 19 Oct 2020 03:13:21 +0000 (03:13 +0000)
commit2bf6442d7d9bd452153e6b1ea08ddaae3dfb3716
tree4e18a0f2870670bef45e14bf75703e609f4e01a1
parent5b0c542075b99dcf8574359082fcac6601cc6548
LU-13498 sec: fix credentials with nodemap and SSK

When SSK is enabled, credentials are evaluated in new_init_ucred().
In case a nodemap entry is defined with squash UID/GID, it must
prevail over normally mapped UID/GID.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I1adfd98759e5b98ec78f0477846e1820fed5d8b3
Reviewed-on: https://review.whamcloud.com/40140
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c