summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-27 10:01:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-27 10:01:30 +0000
commite2d301accfc0977fa3c647900b5e1e2315c3f639 (patch)
treecd5af2a2f257142e677a4a6fd35f8ad3bf820ac2 /source3
parent36abff1609ad7f537494d08c321c0bf853d6ca9e (diff)
downloadsamba-e2d301accfc0977fa3c647900b5e1e2315c3f639.tar.gz
samba-e2d301accfc0977fa3c647900b5e1e2315c3f639.tar.bz2
samba-e2d301accfc0977fa3c647900b5e1e2315c3f639.zip
Clarify comment on set_effective_uid()
Andrew Bartlett (This used to be commit ca24ae50ea37942dde335e97019880b6ce518a6a)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_sec.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source3/lib/util_sec.c b/source3/lib/util_sec.c
index 7c2576ed91..26be27ea51 100644
--- a/source3/lib/util_sec.c
+++ b/source3/lib/util_sec.c
@@ -177,8 +177,16 @@ void gain_root_group_privilege(void)
/****************************************************************************
- Set *only* the effective uid.
- we want to end up with ruid==0 and euid==uid
+ Set effective uid, and possibly the real uid too.
+ We want to end up with either:
+
+ ruid==uid and euid==uid
+
+ or
+
+ ruid==0 and euid==uid
+
+ depending on what the local OS will allow us to regain root from.
****************************************************************************/
void set_effective_uid(uid_t uid)
{