/kernel/ |
D | user.c | 82 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) argument 83 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) argument 105 .uid = GLOBAL_ROOT_UID, 122 static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) in uid_hash_find() argument 127 if (uid_eq(user->uid, uid)) { in uid_hash_find() 154 struct user_struct *find_user(kuid_t uid) in find_user() argument 160 ret = uid_hash_find(uid, uidhashentry(uid)); in find_user() 176 struct user_struct *alloc_uid(kuid_t uid) in alloc_uid() argument 178 struct hlist_head *hashent = uidhashentry(uid); in alloc_uid() 182 up = uid_hash_find(uid, hashent); in alloc_uid() [all …]
|
D | ucount.c | 15 #define ucounts_hashfn(ns, uid) \ argument 16 hash_long((unsigned long)__kuid_val(uid) + (unsigned long)(ns), \ 18 #define ucounts_hashentry(ns, uid) \ argument 19 (ucounts_hashtable + ucounts_hashfn(ns, uid)) 114 static struct ucounts *find_ucounts(struct user_namespace *ns, kuid_t uid, struct hlist_head *hashe… in find_ucounts() argument 119 if (uid_eq(ucounts->uid, uid) && (ucounts->ns == ns)) in find_ucounts() 125 static struct ucounts *get_ucounts(struct user_namespace *ns, kuid_t uid) in get_ucounts() argument 127 struct hlist_head *hashent = ucounts_hashentry(ns, uid); in get_ucounts() 131 ucounts = find_ucounts(ns, uid, hashent); in get_ucounts() 140 new->uid = uid; in get_ucounts() [all …]
|
D | sys.c | 162 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 205 kuid_t uid; in SYSCALL_DEFINE3() local 238 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE3() 241 uid = cred->uid; in SYSCALL_DEFINE3() 242 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3() 243 user = find_user(uid); in SYSCALL_DEFINE3() 248 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) in SYSCALL_DEFINE3() 251 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3() 275 kuid_t uid; in SYSCALL_DEFINE2() local 306 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE2() [all …]
|
D | auditsc.c | 306 static int audit_compare_uid(kuid_t uid, in audit_compare_uid() argument 315 rc = audit_uid_comparator(uid, f->op, name->uid); in audit_compare_uid() 322 rc = audit_uid_comparator(uid, f->op, n->uid); in audit_compare_uid() 363 return audit_compare_uid(cred->uid, name, f, ctx); in audit_field_compare() 382 return audit_uid_comparator(cred->uid, f->op, in audit_field_compare() 385 return audit_uid_comparator(cred->uid, f->op, cred->euid); in audit_field_compare() 387 return audit_uid_comparator(cred->uid, f->op, cred->suid); in audit_field_compare() 389 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare() 476 result = audit_uid_comparator(cred->uid, f->op, f->uid); in audit_filter_rules() 479 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules() [all …]
|
D | uid16.c | 53 SYSCALL_DEFINE1(setuid16, old_uid_t, uid) in SYSCALL_DEFINE1() argument 55 return __sys_setuid(low2highuid(uid)); in SYSCALL_DEFINE1() 70 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid)); in SYSCALL_DEFINE3() 104 SYSCALL_DEFINE1(setfsuid16, old_uid_t, uid) in SYSCALL_DEFINE1() argument 106 return __sys_setfsuid(low2highuid(uid)); in SYSCALL_DEFINE1()
|
D | exit.c | 917 uid_t uid; member 978 uid_t uid = from_kuid_munged(current_user_ns(), task_uid(p)); in wait_task_zombie() local 1097 infop->uid = uid; in wait_task_zombie() 1138 uid_t uid = 0; /* unneeded, required by compiler */ in wait_task_stopped() local 1164 uid = from_kuid_munged(current_user_ns(), task_uid(p)); in wait_task_stopped() 1194 infop->uid = uid; in wait_task_stopped() 1209 uid_t uid; in wait_task_continued() local 1225 uid = from_kuid_munged(current_user_ns(), task_uid(p)); in wait_task_continued() 1242 infop->uid = uid; in wait_task_continued() 1573 unsafe_put_user(info.uid, &infop->si_uid, Efault); in SYSCALL_DEFINE5() [all …]
|
D | uid16.h | 5 long __sys_setuid(uid_t uid); 11 long __sys_setfsuid(uid_t uid);
|
D | user_namespace.c | 32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces() argument 34 return inc_ucount(ns, uid, UCOUNT_USER_NAMESPACES); in inc_user_namespaces() 386 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid() argument 389 return KUIDT_INIT(map_id_down(&ns->uid_map, uid)); in make_kuid() 432 uid_t uid; in from_kuid_munged() local 433 uid = from_kuid(targ, kuid); in from_kuid_munged() 435 if (uid == (uid_t) -1) in from_kuid_munged() 436 uid = overflowuid; in from_kuid_munged() 437 return uid; in from_kuid_munged() 1096 kuid_t uid = make_kuid(ns->parent, id); in new_idmap_permitted() local [all …]
|
D | audit.h | 77 kuid_t uid; member 128 kuid_t uid, euid, suid, fsuid; member 151 kuid_t uid; member
|
D | audit.c | 1046 uid_t uid = from_kuid(&init_user_ns, current_uid()); in audit_log_common_recv_msg() local 1057 audit_log_format(*ab, "pid=%d uid=%u ", pid, uid); in audit_log_common_recv_msg() 1430 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg() 2139 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info() 2204 uid_t uid, oldloginuid, loginuid; in audit_log_set_loginuid() local 2214 uid = from_kuid(&init_user_ns, task_uid(current)); in audit_log_set_loginuid() 2219 audit_log_format(ab, "pid=%d uid=%u", task_tgid_nr(current), uid); in audit_log_set_loginuid() 2273 kuid_t uid = current_uid(), auid; in audit_signal_info() local 2283 audit_sig_uid = uid; in audit_signal_info()
|
D | cred.c | 47 .uid = GLOBAL_ROOT_UID, 494 if (!uid_eq(new->uid, old->uid) || in commit_creds() 815 from_kuid_munged(&init_user_ns, cred->uid), in dump_invalid_creds()
|
D | auditfilter.c | 488 f->uid = make_kuid(current_user_ns(), f->val); in audit_data_to_entry() 489 if (!uid_valid(f->uid)) in audit_data_to_entry() 746 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule() 1335 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter() 1342 f->op, f->uid); in audit_filter()
|
D | tsacct.c | 54 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid); in bacct_add_tsk()
|
D | signal.c | 812 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred() 813 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred() 814 uid_eq(cred->uid, tcred->uid) || in kill_ok_by_cred() 1222 kuid_t uid = make_kuid(current_user_ns(), info->si_uid); in send_signal() local 1223 info->si_uid = from_kuid_munged(t_user_ns, uid); in send_signal() 1470 uid_eq(cred->euid, pcred->uid) || in kill_as_cred_perm() 1471 uid_eq(cred->uid, pcred->suid) || in kill_as_cred_perm() 1472 uid_eq(cred->uid, pcred->uid); in kill_as_cred_perm()
|
D | ptrace.c | 318 caller_uid = cred->uid; in __ptrace_may_access() 324 uid_eq(caller_uid, tcred->uid) && in __ptrace_may_access()
|
D | acct.c | 495 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process()
|
/kernel/bpf/ |
D | helpers.c | 174 kuid_t uid; in BPF_CALL_0() local 180 current_uid_gid(&uid, &gid); in BPF_CALL_0() 182 from_kuid(&init_user_ns, uid); in BPF_CALL_0()
|
D | syscall.c | 2347 prog->aux->user->uid); in bpf_prog_get_info_by_fd()
|
/kernel/cgroup/ |
D | cgroup-v1.c | 515 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write()
|
/kernel/trace/ |
D | trace.h | 164 kuid_t uid; member
|
D | trace.c | 1529 max_data->uid = current_uid(); in __update_max_tr() 1531 max_data->uid = task_uid(tsk); in __update_max_tr() 3677 from_kuid_munged(seq_user_ns(m), data->uid), data->nice, in print_trace_header()
|
/kernel/sched/ |
D | core.c | 4746 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|