summaryrefslogtreecommitdiff
path: root/source3/lib/util_sec.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-09-23 14:49:17 +0000
committerVolker Lendecke <vlendec@samba.org>2003-09-23 14:49:17 +0000
commitee868462a0fadcb7a0b18568069dd9190e246d9a (patch)
treeb4d8a896f296c42d8ab49daee761be5b765c208a /source3/lib/util_sec.c
parentf167cf594d41ce1133ecbd1d12f9d75d340f288b (diff)
downloadsamba-ee868462a0fadcb7a0b18568069dd9190e246d9a.tar.gz
Add a descriptive comment to our usage of setresuid. lib/afs.c needs
to be changed if we decide to set our real uid. Jeremy? Volker (This used to be commit 1fed55aa781bcf9efdd42f361c972b69152137a4)
Diffstat (limited to 'source3/lib/util_sec.c')
-rw-r--r--source3/lib/util_sec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index 132748ce138..1980b8bfb7c 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -183,6 +183,10 @@ void gain_root_group_privilege(void)
void set_effective_uid(uid_t uid)
{
#if USE_SETRESUID
+ /* On Systems which have this function, would it not be more
+ * appropriate to also set the real uid by doing
+ * setresuid(uid,uid,-1)? This would make patching AFS
+ * unnecessary. See comment in lib/afs.c. */
setresuid(-1,uid,-1);
#endif