Lines Matching defs:uid
2043 if (mcp->pwbuf != NULL && mcp->pwd.pw_uid == mcp->uid)
2056 pwdp = getpwuid_r(mcp->uid, &mcp->pwd, mcp->pwbuf,
2089 * ERANGE the uid is too big
2090 * EINVAL the string starts with a digit, but is not a valid uid
2100 uid_t uid;
2104 uid = strtol(str, &cp, 10);
2106 if (uid == 0 && errno != 0) {
2115 if (uid > UID_MAX)
2118 *uidp = uid;
2219 if (cip->uid == 0) {
2416 /* Get the euid first so we don't override ci->pwd for the uid. */
2429 if ((r = get_uid(value, ci, &ci->uid)) != 0) {
2430 ci->euid = ci->uid = (uid_t)-1;
2432 "Could not interpret profile uid value \"%s\", "
2437 ci->euid = ci->uid;
2531 if ((r = get_uid(vbuf, ci, &ci->uid)) != 0) {
2532 ci->uid = (uid_t)-1;
2566 "No passwd entry for uid \"%d\".", ci->uid));
2757 * the working directory is '/', and uid/gid are 0/0. But if a method_context
2829 cip->uid = (uid_t)-1;
2916 cip->uid = 0;
3419 cip->uid = 0;
3471 * uid or euid is out of range (setreuid)
3475 * ENOENT - uid has a passwd entry but no shadow entry
3477 * uid has no passwd entry
3488 * ESRCH - uid is not a user of project (setproject)
3749 if (setreuid(cip->uid,
3750 cip->euid != (uid_t)-1 ? cip->euid : cip->uid) != 0) {
3767 * This should come after the uid switching as only the user might