Home
last modified time | relevance | path

Searched refs:euid (Results 1 – 12 of 12) sorted by relevance

/kernel/
Duid16.c48 SYSCALL_DEFINE2(setreuid16, old_uid_t, ruid, old_uid_t, euid) in SYSCALL_DEFINE2() argument
50 return __sys_setreuid(low2highuid(ruid), low2highuid(euid)); in SYSCALL_DEFINE2()
58 SYSCALL_DEFINE3(setresuid16, old_uid_t, ruid, old_uid_t, euid, old_uid_t, suid) in SYSCALL_DEFINE3() argument
60 return __sys_setresuid(low2highuid(ruid), low2highuid(euid), in SYSCALL_DEFINE3()
68 old_uid_t ruid, euid, suid; in SYSCALL_DEFINE3() local
71 euid = high2lowuid(from_kuid_munged(cred->user_ns, cred->euid)); in SYSCALL_DEFINE3()
75 !(retval = put_user(euid, euidp))) in SYSCALL_DEFINE3()
Dsys.c176 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
177 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
523 long __sys_setreuid(uid_t ruid, uid_t euid) in __sys_setreuid() argument
532 keuid = make_kuid(ns, euid); in __sys_setreuid()
536 if ((euid != (uid_t) -1) && !uid_valid(keuid)) in __sys_setreuid()
548 !uid_eq(old->euid, kruid) && in __sys_setreuid()
553 if (euid != (uid_t) -1) { in __sys_setreuid()
554 new->euid = keuid; in __sys_setreuid()
556 !uid_eq(old->euid, keuid) && in __sys_setreuid()
568 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) in __sys_setreuid()
[all …]
Duid16.h7 long __sys_setreuid(uid_t ruid, uid_t euid);
9 long __sys_setresuid(uid_t ruid, uid_t euid, uid_t suid);
Dcred.c53 .euid = GLOBAL_ROOT_UID,
328 new->suid = new->fsuid = new->euid; in prepare_exec_creds()
429 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset()
470 if (!uid_eq(old->euid, new->euid) || in commit_creds()
512 !uid_eq(new->euid, old->euid) || in commit_creds()
857 from_kuid_munged(&init_user_ns, cred->euid), in dump_invalid_creds()
Duser_namespace.c84 kuid_t owner = new->euid; in create_user_ns()
1168 uid_eq(ns->owner, cred->euid)) { in new_idmap_permitted()
1172 if (uid_eq(uid, cred->euid)) in new_idmap_permitted()
Dauditsc.c400 return audit_compare_uid(cred->euid, name, f, ctx); in audit_field_compare()
418 return audit_uid_comparator(cred->uid, f->op, cred->euid); in audit_field_compare()
426 cred->euid); in audit_field_compare()
435 return audit_uid_comparator(cred->euid, f->op, cred->suid); in audit_field_compare()
437 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare()
512 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules()
Daudit.h131 kuid_t uid, euid, suid, fsuid; member
Dsignal.c819 return uid_eq(cred->euid, tcred->suid) || in kill_ok_by_cred()
820 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred()
1506 return uid_eq(cred->euid, pcred->suid) || in kill_as_cred_perm()
1507 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm()
Dptrace.c333 if (uid_eq(caller_uid, tcred->euid) && in __ptrace_may_access()
Daudit.c2268 from_kuid(&init_user_ns, cred->euid), in audit_log_task_info()
/kernel/cgroup/
Dcgroup-v1.c520 if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write()
521 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write()
522 !uid_eq(cred->euid, tcred->suid) && in __cgroup1_procs_write()
/kernel/sched/
Dcore.c7459 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner()
7460 uid_eq(cred->euid, pcred->uid)); in check_same_owner()