mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
Clarify comment on set_effective_uid()
Andrew Bartlett
This commit is contained in:
parent
934e9f3bd0
commit
ca24ae50ea
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user