Whamcloud - gitweb
LU-14121 nodemap: do not force fsuid/fsgid squashing 45/40645/6
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 13 Nov 2020 10:36:14 +0000 (19:36 +0900)
committerOleg Drokin <green@whamcloud.com>
Sun, 13 Dec 2020 08:23:22 +0000 (08:23 +0000)
commit355787745f21b22bb36210bb1c8e41fb34e7b665
treedfe0b160b2f302ce94ba21b45afd528c09bf647e
parent0fece1af57e74efa5a7248f57495e2bddf72bb38
LU-14121 nodemap: do not force fsuid/fsgid squashing

In the current implementation, if the real uid is squashed, then the
fsuid is similarly squashed, no matter what is the value of the
effective uid.
This squashing is a little bit too strict, and we should instead trust
mapped fsuid and fsgid values.

Also add euid_access test program and sanity-sec test_55 to verify
the issue is fixed.

Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Iecaecac5054b105cd42206b0a9a3868cde0269b4
Reviewed-on: https://review.whamcloud.com/40645
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c
lustre/tests/.gitignore
lustre/tests/Makefile.am
lustre/tests/euid_access.c [new file with mode: 0644]
lustre/tests/sanity-sec.sh