Lines Matching defs:uid

121  * Returns true if current's euid is same as p's uid or euid,
130 if (uid_eq(pcred->uid, cred->euid) ||
173 kuid_t uid;
206 uid = make_kuid(cred->user_ns, who);
209 uid = cred->uid;
210 else if (!uid_eq(uid, cred->uid)) {
211 user = find_user(uid);
216 if (uid_eq(task_uid(p), uid))
219 if (!uid_eq(uid, cred->uid))
243 kuid_t uid;
274 uid = make_kuid(cred->user_ns, who);
277 uid = cred->uid;
278 else if (!uid_eq(uid, cred->uid)) {
279 user = find_user(uid);
284 if (uid_eq(task_uid(p), uid)) {
290 if (!uid_eq(uid, cred->uid))
415 new_user = alloc_uid(new->uid);
421 * poorly written programs don't check set*uid() return code, assuming
423 * for programs doing set*uid()+execve() by harmlessly deferring the
438 * Unprivileged users may change the real uid to the effective uid
441 * If you set the real uid at all, or set the effective uid to a value not
442 * equal to the real uid, then the saved uid is set to the new effective uid.
475 new->uid = kruid;
476 if (!uid_eq(old->uid, kruid) &&
484 if (!uid_eq(old->uid, keuid) &&
491 if (!uid_eq(new->uid, old->uid)) {
497 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid)))
516 * like sendmail, for example, cannot set its uid to be a normal
518 * the saved uid too. If you don't like this, blame the bright people
521 * regain them by swapping the real and effective uid.
523 SYSCALL_DEFINE1(setuid, uid_t, uid)
531 kuid = make_kuid(ns, uid);
542 new->suid = new->uid = kuid;
543 if (!uid_eq(kuid, old->uid)) {
548 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) {
599 if (ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) &&
602 if (euid != (uid_t) -1 && !uid_eq(keuid, old->uid) &&
605 if (suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) &&
611 new->uid = kruid;
612 if (!uid_eq(kruid, old->uid)) {
641 ruid = from_kuid_munged(cred->user_ns, cred->uid);
731 * "setfsuid()" sets the fsuid - the uid used for filesystem checks. This
733 * whatever uid it wants to). It normally shadows "euid", except when
736 SYSCALL_DEFINE1(setfsuid, uid_t, uid)
746 kuid = make_kuid(old->user_ns, uid);
754 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) ||
1423 if (uid_eq(cred->uid, tcred->euid) &&
1424 uid_eq(cred->uid, tcred->suid) &&
1425 uid_eq(cred->uid, tcred->uid) &&
1785 if (!uid_eq(cred->uid, make_kuid(ns, 0)) ||