From Frank Filz <ffilzlnx(a)mindspring.com>:
Frank Filz has uploaded this change for review. (
https://review.gerrithub.io/413866
Change subject: Use euid/egid instead of fsuid/fsgid
......................................................................
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(a)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
https://review.gerrithub.io/413866
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/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(a)mindspring.com>