Searched refs:shell_gid (Results 1 – 1 of 1) sorted by relevance
51 gid_t shell_gid = grp != nullptr ? grp->gr_gid : 0; in DropRootUser() local55 if (!shell_gid || !shell_uid) { in DropRootUser()60 if (getgid() == shell_gid && getuid() == shell_uid) { in DropRootUser()88 if (setgid(shell_gid) != 0) { in DropRootUser()