/kernel/ |
D | user.c | 74 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) argument 75 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) argument 97 .uid = GLOBAL_ROOT_UID, 113 static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) in uid_hash_find() argument 118 if (uid_eq(user->uid, uid)) { in uid_hash_find() 147 struct user_struct *find_user(kuid_t uid) in find_user() argument 153 ret = uid_hash_find(uid, uidhashentry(uid)); in find_user() 172 struct user_struct *alloc_uid(kuid_t uid) in alloc_uid() argument 174 struct hlist_head *hashent = uidhashentry(uid); in alloc_uid() 178 up = uid_hash_find(uid, hashent); in alloc_uid() [all …]
|
D | sys.c | 143 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 186 kuid_t uid; in SYSCALL_DEFINE3() local 219 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE3() 222 uid = cred->uid; in SYSCALL_DEFINE3() 223 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3() 224 user = find_user(uid); in SYSCALL_DEFINE3() 229 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) in SYSCALL_DEFINE3() 232 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3() 256 kuid_t uid; in SYSCALL_DEFINE2() local 287 uid = make_kuid(cred->user_ns, who); in SYSCALL_DEFINE2() [all …]
|
D | auditsc.c | 312 static int audit_compare_uid(kuid_t uid, in audit_compare_uid() argument 321 rc = audit_uid_comparator(uid, f->op, name->uid); in audit_compare_uid() 328 rc = audit_uid_comparator(uid, f->op, n->uid); in audit_compare_uid() 369 return audit_compare_uid(cred->uid, name, f, ctx); in audit_field_compare() 388 return audit_uid_comparator(cred->uid, f->op, tsk->loginuid); in audit_field_compare() 390 return audit_uid_comparator(cred->uid, f->op, cred->euid); in audit_field_compare() 392 return audit_uid_comparator(cred->uid, f->op, cred->suid); in audit_field_compare() 394 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare() 477 result = audit_uid_comparator(cred->uid, f->op, f->uid); in audit_filter_rules() 480 result = audit_uid_comparator(cred->euid, f->op, f->uid); in audit_filter_rules() [all …]
|
D | uid16.c | 49 SYSCALL_DEFINE1(setuid16, old_uid_t, uid) in SYSCALL_DEFINE1() argument 51 return sys_setuid(low2highuid(uid)); in SYSCALL_DEFINE1() 66 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid)); in SYSCALL_DEFINE3() 101 SYSCALL_DEFINE1(setfsuid16, old_uid_t, uid) in SYSCALL_DEFINE1() argument 103 return sys_setfsuid(low2highuid(uid)); in SYSCALL_DEFINE1()
|
D | user_namespace.c | 239 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid() argument 242 return KUIDT_INIT(map_id_down(&ns->uid_map, uid)); in make_kuid() 285 uid_t uid; in from_kuid_munged() local 286 uid = from_kuid(targ, kuid); in from_kuid_munged() 288 if (uid == (uid_t) -1) in from_kuid_munged() 289 uid = overflowuid; in from_kuid_munged() 290 return uid; in from_kuid_munged() 827 kuid_t uid = make_kuid(ns->parent, id); in new_idmap_permitted() local 828 if (uid_eq(uid, cred->euid)) in new_idmap_permitted()
|
D | exit.c | 945 pid_t pid, uid_t uid, int why, int status) in wait_noreap_copyout() argument 963 retval = put_user(uid, &infop->si_uid); in wait_noreap_copyout() 982 uid_t uid = from_kuid_munged(current_user_ns(), task_uid(p)); in wait_task_zombie() local 1003 return wait_noreap_copyout(wo, p, pid, uid, why, status); in wait_task_zombie() 1105 retval = put_user(uid, &infop->si_uid); in wait_task_zombie() 1163 uid_t uid = 0; /* unneeded, required by compiler */ in wait_task_stopped() local 1189 uid = from_kuid_munged(current_user_ns(), task_uid(p)); in wait_task_stopped() 1209 return wait_noreap_copyout(wo, p, pid, uid, why, exit_code); in wait_task_stopped() 1228 retval = put_user(uid, &infop->si_uid); in wait_task_stopped() 1247 uid_t uid; in wait_task_continued() local [all …]
|
D | audit.h | 87 kuid_t uid; member 138 kuid_t uid, euid, suid, fsuid; member 161 kuid_t uid; member
|
D | cred.c | 49 .uid = GLOBAL_ROOT_UID, 486 if (!uid_eq(new->uid, old->uid) || in commit_creds() 766 from_kuid_munged(&init_user_ns, cred->uid), in dump_invalid_creds()
|
D | auditfilter.c | 467 f->uid = make_kuid(current_user_ns(), f_val); in audit_data_to_entry() 468 if (!uid_valid(f->uid)) in audit_data_to_entry() 731 if (!uid_eq(a->fields[i].uid, b->fields[i].uid)) in audit_compare_rule() 1319 result = audit_uid_comparator(current_uid(), f->op, f->uid); in audit_filter_user_rules() 1326 f->op, f->uid); in audit_filter_user_rules()
|
D | audit.c | 705 uid_t uid = from_kuid(&init_user_ns, current_uid()); in audit_log_common_recv_msg() local 716 audit_log_format(*ab, "pid=%d uid=%u", pid, uid); in audit_log_common_recv_msg() 1034 sig_data->uid = from_kuid(&init_user_ns, audit_sig_uid); in audit_receive_msg() 1742 name->uid = inode->i_uid; in audit_copy_inode() 1798 from_kuid(&init_user_ns, n->uid), in audit_log_name() 1906 from_kuid(&init_user_ns, cred->uid), in audit_log_task_info()
|
D | signal.c | 764 uid_eq(cred->euid, tcred->uid) || in kill_ok_by_cred() 765 uid_eq(cred->uid, tcred->suid) || in kill_ok_by_cred() 766 uid_eq(cred->uid, tcred->uid)) in kill_ok_by_cred() 1389 if (!uid_eq(cred->euid, pcred->suid) && !uid_eq(cred->euid, pcred->uid) && in kill_as_cred_perm() 1390 !uid_eq(cred->uid, pcred->suid) && !uid_eq(cred->uid, pcred->uid)) in kill_as_cred_perm()
|
D | tsacct.c | 63 stats->ac_uid = from_kuid_munged(user_ns, tcred->uid); in bacct_add_tsk()
|
D | ptrace.c | 292 caller_uid = cred->uid; in __ptrace_may_access() 298 uid_eq(caller_uid, tcred->uid) && in __ptrace_may_access()
|
D | acct.c | 492 ac.ac_uid = from_kuid_munged(file->f_cred->user_ns, orig_cred->uid); in do_acct_process()
|
D | cgroup.c | 2696 !uid_eq(cred->euid, tcred->uid) && in cgroup_procs_write_permission()
|
/kernel/bpf/ |
D | helpers.c | 144 kuid_t uid; in bpf_get_current_uid_gid() local 150 current_uid_gid(&uid, &gid); in bpf_get_current_uid_gid() 152 from_kuid(&init_user_ns, uid); in bpf_get_current_uid_gid()
|
/kernel/trace/ |
D | trace.h | 154 kuid_t uid; member
|
D | trace.c | 1054 max_data->uid = current_uid(); in __update_max_tr() 1056 max_data->uid = task_uid(tsk); in __update_max_tr() 2698 from_kuid_munged(seq_user_ns(m), data->uid), data->nice, in print_trace_header()
|
/kernel/sched/ |
D | core.c | 3919 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|