diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-27 10:19:11 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-27 10:19:11 +0000 |
commit | 40fced520587a23bb3704d02af82424ae694c31f (patch) | |
tree | 7d4ffdf80892d1a1705b72356ec201e76edf9412 /source3/lib/util_sec.c | |
parent | 2c1ddaea28da1e4444a2c51b8a46793cce542083 (diff) | |
download | samba-40fced520587a23bb3704d02af82424ae694c31f.tar.gz samba-40fced520587a23bb3704d02af82424ae694c31f.tar.bz2 samba-40fced520587a23bb3704d02af82424ae694c31f.zip |
(merge from 3.0)
Clarify comment on set_effective_uid()
Andrew Bartlett
(This used to be commit 0a9afefb55e9071fd21ea280095555f423571853)
Diffstat (limited to 'source3/lib/util_sec.c')
-rw-r--r-- | source3/lib/util_sec.c | 12 |
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) { |