amit.sutar(a)ibm.com has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1242753?usp=email )
Change subject: Use setfsgid/setfsuid instead of setresgid/setresuid
......................................................................
Use setfsgid/setfsuid instead of setresgid/setresuid
2.7 code uses setresgid()/setresuid() to change effective gid/uid.
But this is not working as of now as uid is not changing with
setresuid().
Temporary fix: Use setfsgid()/setfsuid() instead of setresgid/setresuid()
in the way it is used in 2.5. Will revert it when we have a fix to
use setresuid() to change uid.
Change-Id: Icff0a50e168a02487885273e2c59f303d4634ae3
Signed-off-by: Madhu Thorat <madhu.punjabi(a)in.ibm.com>
(cherry picked from commit 41749b2e5ad50d1e5f94366ae61809f180e849d6)
(cherry picked from commit 229091ee8947a308faa0f957cfab90ab1a33e586)
(cherry picked from commit 29f470304d50728ef9a5560ec89eccd496551016)
---
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, 30 insertions(+), 22 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/53/1242753/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1242753?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Icff0a50e168a02487885273e2c59f303d4634ae3
Gerrit-Change-Number: 1242753
Gerrit-PatchSet: 1
Gerrit-Owner: amit.sutar(a)ibm.com
Gerrit-CC: Madhu Thorat <madhu.punjabi(a)in.ibm.com>