• Home
  • Raw
  • Download

Lines Matching refs:uid

177 	if (uid_eq(pcred->uid,  cred->euid) ||  in set_one_prio_perm()
220 kuid_t uid; in SYSCALL_DEFINE3() local
254 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE3()
257 uid = cred->uid; in SYSCALL_DEFINE3()
258 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3()
259 user = find_user(uid); in SYSCALL_DEFINE3()
264 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) in SYSCALL_DEFINE3()
267 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3()
290 kuid_t uid; in SYSCALL_DEFINE2() local
322 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE2()
325 uid = cred->uid; in SYSCALL_DEFINE2()
326 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE2()
327 user = find_user(uid); in SYSCALL_DEFINE2()
332 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) { in SYSCALL_DEFINE2()
338 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2()
481 new_user = alloc_uid(new->uid); in set_user()
547 new->uid = kruid; in __sys_setreuid()
548 if (!uid_eq(old->uid, kruid) && in __sys_setreuid()
556 if (!uid_eq(old->uid, keuid) && in __sys_setreuid()
563 if (!uid_eq(new->uid, old->uid)) { in __sys_setreuid()
569 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid()
605 long __sys_setuid(uid_t uid) in __sys_setuid() argument
613 kuid = make_kuid(ns, uid); in __sys_setuid()
624 new->suid = new->uid = kuid; in __sys_setuid()
625 if (!uid_eq(kuid, old->uid)) { in __sys_setuid()
630 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid()
652 SYSCALL_DEFINE1(setuid, uid_t, uid) in SYSCALL_DEFINE1() argument
654 return __sys_setuid(uid); in SYSCALL_DEFINE1()
687 if ((ruid == (uid_t) -1 || uid_eq(kruid, old->uid)) && in __sys_setresuid()
693 ruid_new = ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && in __sys_setresuid()
695 euid_new = euid != (uid_t) -1 && !uid_eq(keuid, old->uid) && in __sys_setresuid()
697 suid_new = suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && in __sys_setresuid()
708 new->uid = kruid; in __sys_setresuid()
709 if (!uid_eq(kruid, old->uid)) { in __sys_setresuid()
748 ruid = from_kuid_munged(cred->user_ns, cred->uid); in SYSCALL_DEFINE3()
858 long __sys_setfsuid(uid_t uid) in __sys_setfsuid() argument
868 kuid = make_kuid(old->user_ns, uid); in __sys_setfsuid()
876 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || in __sys_setfsuid()
894 SYSCALL_DEFINE1(setfsuid, uid_t, uid) in SYSCALL_DEFINE1() argument
896 return __sys_setfsuid(uid); in SYSCALL_DEFINE1()
1667 id_match = (uid_eq(cred->uid, tcred->euid) && in check_prlimit_permission()
1668 uid_eq(cred->uid, tcred->suid) && in check_prlimit_permission()
1669 uid_eq(cred->uid, tcred->uid) && in check_prlimit_permission()