ea42ee9ebd6f96e771c16e3fee705fa2e6fe609d |
|
19-Oct-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Add drop_setuid_root for restrict_access
drop_setuid_root, when set to true, will detect
and try to drop getuid()==0. This is done by
recovering current effective UID to set->uid
if set->uid == -1, and then doing seteuid(0).
It will also drop out any other extra privileges,
such as extra groups not requested for. |