On AIX, for setregid(RGID, EGID), if RGID==EGIG, then the process's effective
gid must be the root user. Therefore we need to reclaim the effective gid in _become_user() before dropping real, effective, and saved gids. Likewise for setreuid().
Please register or sign in to comment