diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-27 10:01:30 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-27 10:01:30 +0000 |
commit | ca24ae50ea37942dde335e97019880b6ce518a6a (patch) | |
tree | ad9fe14a82f8d55d85eb6878b50056e1a0784e8a /source/lib/util_sec.c | |
parent | 934e9f3bd0e8a938263978ffcd1fef51e42fa5e4 (diff) | |
download | samba-ca24ae50ea37942dde335e97019880b6ce518a6a.tar.gz samba-ca24ae50ea37942dde335e97019880b6ce518a6a.tar.xz samba-ca24ae50ea37942dde335e97019880b6ce518a6a.zip |
Clarify comment on set_effective_uid()
Andrew Bartlett
Diffstat (limited to 'source/lib/util_sec.c')
-rw-r--r-- | source/lib/util_sec.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/lib/util_sec.c b/source/lib/util_sec.c index 7c2576ed91e..26be27ea515 100644 --- a/source/lib/util_sec.c +++ b/source/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) { |