Whamcloud - gitweb
LU-9795 mdt: only set groups if GID is not squashed 16/33316/11
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 5 Oct 2018 11:51:57 +0000 (20:51 +0900)
committerOleg Drokin <green@whamcloud.com>
Tue, 13 Nov 2018 06:15:26 +0000 (06:15 +0000)
commite17178808f7430a17b4cfe8f407b7c2a825d285a
treef6fd3062f8b7be7a52794fc3a5b7f7fbf2883754
parent2730005e1478db28c0cb50a12e5d40c9a8b81a47
LU-9795 mdt: only set groups if GID is not squashed

In new_init_ucred(), only set groups for local client if GID is
not squashed. Otherwise, GID squashing would be by-passed.

Test-Parameters: testlist=sanity-sec envdefinitions=ONLY="17 18 19 20 21 22",SHARED_KEY=true
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I56961c62a93d99e6a62c72cca7b4fa6e9b3388b9
Reviewed-on: https://review.whamcloud.com/33316
Tested-by: Jenkins
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c
lustre/tests/sanity-sec.sh