git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605e257
)
Add a descriptive comment to our usage of setresuid. lib/afs.c needs
author
Volker Lendecke
<vlendec@samba.org>
Tue, 23 Sep 2003 14:49:17 +0000
(14:49 +0000)
committer
Volker Lendecke
<vlendec@samba.org>
Tue, 23 Sep 2003 14:49:17 +0000
(14:49 +0000)
to be changed if we decide to set our real uid. Jeremy?
Volker
source/lib/util_sec.c
patch
|
blob
|
history
diff --git
a/source/lib/util_sec.c
b/source/lib/util_sec.c
index 132748ce138e147b2ae019e78bb970ed7ca9e408..1980b8bfb7cae887023f34002bedfbc92c2f0f6f 100644
(file)
--- a/
source/lib/util_sec.c
+++ b/
source/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