Frank Filz has uploaded this change for review.

View Change

Use euid/egid instead of fsuid/fsgid

Doing this, we can then call getuid and getgid for saving the
credentials. This allows the interfaces for
fsal_save_ganesha_credentials to be a bit more generic.

Since we want to set thread specific credentials, we call the system
call directly rather than using setresuid/setresgid which is are glibc
functions that cause the system calls to be made on each thread in the
process.

Change-Id: Iaedfb0b9875ca0610171652bd160d748ed429a73
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/access_check.c
M src/include/os/subr.h
M src/os/freebsd/subr.c
M src/os/linux/subr.c
4 files changed, 49 insertions(+), 26 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/66/413866/1

To view, visit change 413866. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaedfb0b9875ca0610171652bd160d748ed429a73
Gerrit-Change-Number: 413866
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx@mindspring.com>