Lines Matching defs:gid
28 errno_t become_user(uid_t uid, gid_t gid)
34 "Trying to become user [%"SPRIuid"][%"SPRIgid"].\n", uid, gid);
52 /* change gid so that root cannot be regained (changes saved gid too) */
53 ret = setresgid(gid, gid, gid);
76 gid_t gid;
86 uid_t uid, gid_t gid,
96 DEBUG(SSSDBG_FUNC_DATA, "Switch user to [%d][%d].\n", uid, gid);
133 ssc->gid = mygid;
151 if (myuid == uid && mygid == gid) {
159 * generally we only really care about uid and at mot primary gid */
167 /* change gid now, (leaves saved gid to current, so we can restore) */
168 ret = setresgid(-1, gid, -1);
209 saved_creds->gid,