Lines Matching defs:uid
28 errno_t become_user(uid_t uid, gid_t gid)
34 "Trying to become user [%"SPRIuid"][%"SPRIgid"].\n", uid, gid);
38 if (uid == cuid) {
39 DEBUG(SSSDBG_FUNC_DATA, "Already user [%"SPRIuid"].\n", uid);
61 /* change uid so that root cannot be regained (changes saved uid too) */
63 ret = setresuid(uid, uid, uid);
75 uid_t uid;
86 uid_t uid, gid_t gid,
96 DEBUG(SSSDBG_FUNC_DATA, "Switch user to [%d][%d].\n", uid, gid);
132 ssc->uid = myuid;
139 if (uid == 0) {
151 if (myuid == uid && mygid == gid) {
152 DEBUG(SSSDBG_FUNC_DATA, "Already user [%"SPRIuid"].\n", uid);
159 * generally we only really care about uid and at mot primary gid */
176 if (uid != 0) {
177 /* change uid, (leaves saved uid to current, so we can restore) */
178 ret = setresuid(-1, uid, -1);
208 saved_creds->uid,