Whamcloud - gitweb
LU-9145 nodemap: new_init_ucred doesn't do nodemapping 24/26624/4
authorKit Westneat <kit.westneat@gmail.com>
Fri, 14 Apr 2017 15:06:02 +0000 (11:06 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Jan 2018 05:35:28 +0000 (05:35 +0000)
commit37db778f48f952747575e323cb341ed663852fff
tree4274d1d97041d0cc8bd7ca6be1b3082cc221e5c0
parent60c5bc2502591f46260e11db540c0ec2adbc8db8
LU-9145 nodemap: new_init_ucred doesn't do nodemapping

The new_init_ucred path was missed in the original nodemap
implementation. This patch adds the mapping calls to new_init_ucred.

WIP: There are some issues/questions:
 - some of the new_init_ucred code should be merged with
old_init_ucred_common.
 - Why does new_init check for setuid/setgid/setgrp, but not old_init?
 - What is ptlrpc_user_desc and should it interact with nodemap?

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: Ia0e07078f32c43ec319be5a4cea753667056d645
Reviewed-on: https://review.whamcloud.com/26624
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_lib.c