mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
Add a descriptive comment to our usage of setresuid. lib/afs.c needs
to be changed if we decide to set our real uid. Jeremy?
Volker
(This used to be commit 1fed55aa78
)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user