From 56f4e2da649b208296fb136ba7a22f5d03b5d7f1 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 2 Aug 2012 17:24:02 -0400 Subject: [PATCH] libafs: revert init req to use the real uid The commit to use wrappers for creditial structure access inadvertently changed the user id to be the effective uid instead of the real uid, when no PAG is present, on linux. Revert this so setuid programs continue to work. See commit eb8e55bba7740a87e07ef07bb4b789e6d4e36f0d Change-Id: I5d42b8caf90a042192ed39f26e55d70c9531f2e9 Reviewed-on: http://gerrit.openafs.org/7931 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 1a1e87dcdf972519cd21970f7c78709e40f8e1e9) Reviewed-on: http://gerrit.openafs.org/7990 --- src/afs/afs_osi_pag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afs/afs_osi_pag.c b/src/afs/afs_osi_pag.c index 20cee62a9..efce229ac 100644 --- a/src/afs/afs_osi_pag.c +++ b/src/afs/afs_osi_pag.c @@ -481,7 +481,7 @@ afs_InitReq(struct vrequest *av, afs_ucred_t *acred) #elif defined(AFS_SUN510_ENV) av->uid = crgetruid(acred); #else - av->uid = afs_cr_uid(acred); /* default when no pag is set */ + av->uid = afs_cr_ruid(acred); /* default when no pag is set */ #endif } return 0; -- 2.39.5