• Home
  • Raw
  • Download

Lines Matching refs:cred

175 	const struct cred *cred = current_cred(), *pcred = __task_cred(p);  in set_one_prio_perm()  local
177 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
178 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
217 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
254 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE3()
255 user = cred->user; in SYSCALL_DEFINE3()
257 uid = cred->uid; in SYSCALL_DEFINE3()
258 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3()
267 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3()
287 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
322 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE2()
323 user = cred->user; in SYSCALL_DEFINE2()
325 uid = cred->uid; in SYSCALL_DEFINE2()
326 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE2()
338 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2()
370 const struct cred *old; in __sys_setregid()
371 struct cred *new; in __sys_setregid()
436 const struct cred *old; in __sys_setgid()
437 struct cred *new; in __sys_setgid()
477 static int set_user(struct cred *new) in set_user()
490 static void flag_nproc_exceeded(struct cred *new) in flag_nproc_exceeded()
527 const struct cred *old; in __sys_setreuid()
528 struct cred *new; in __sys_setreuid()
608 const struct cred *old; in __sys_setuid()
609 struct cred *new; in __sys_setuid()
665 const struct cred *old; in __sys_setresuid()
666 struct cred *new; in __sys_setresuid()
744 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
748 ruid = from_kuid_munged(cred->user_ns, cred->uid); in SYSCALL_DEFINE3()
749 euid = from_kuid_munged(cred->user_ns, cred->euid); in SYSCALL_DEFINE3()
750 suid = from_kuid_munged(cred->user_ns, cred->suid); in SYSCALL_DEFINE3()
767 const struct cred *old; in __sys_setresgid()
768 struct cred *new; in __sys_setresgid()
833 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
837 rgid = from_kgid_munged(cred->user_ns, cred->gid); in SYSCALL_DEFINE3()
838 egid = from_kgid_munged(cred->user_ns, cred->egid); in SYSCALL_DEFINE3()
839 sgid = from_kgid_munged(cred->user_ns, cred->sgid); in SYSCALL_DEFINE3()
860 const struct cred *old; in __sys_setfsuid()
861 struct cred *new; in __sys_setfsuid()
904 const struct cred *old; in __sys_setfsgid()
905 struct cred *new; in __sys_setfsgid()
1660 const struct cred *cred = current_cred(), *tcred; in check_prlimit_permission() local
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()
1670 gid_eq(cred->gid, tcred->egid) && in check_prlimit_permission()
1671 gid_eq(cred->gid, tcred->sgid) && in check_prlimit_permission()
1672 gid_eq(cred->gid, tcred->gid)); in check_prlimit_permission()
1676 return security_task_prlimit(cred, tcred, flags); in check_prlimit_permission()