amit.sutar@ibm.com has uploaded this change for review.
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@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 change 1242753. To unsubscribe, or for help writing mail filters, visit settings.