/kernel/linux/linux-5.10/security/ |
D | commoncap.c | 90 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable() 713 { return uid_eq(cred->uid, uid); } in __is_real() 716 { return uid_eq(cred->euid, uid); } in __is_eff() 775 { return !uid_eq(new->euid, old->uid); } in __is_setuid() 1022 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid() 1023 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid() 1024 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid() 1025 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid() 1026 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid() 1027 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid() [all …]
|
/kernel/linux/linux-5.10/security/safesetid/ |
D | lsm.c | 40 if (!uid_eq(rule->src_id.uid, src.uid)) in _setid_policy_lookup() 42 if (uid_eq(rule->dst_id.uid, dst.uid)) in _setid_policy_lookup() 162 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred() 163 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
|
/kernel/linux/linux-5.10/kernel/ |
D | sys.c | 162 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm() 163 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm() 242 else if (!uid_eq(uid, cred->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() 310 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE2() 316 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) { in SYSCALL_DEFINE2() 322 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2() 527 if (!uid_eq(old->uid, kruid) && in __sys_setreuid() 528 !uid_eq(old->euid, kruid) && in __sys_setreuid() [all …]
|
D | cred.c | 416 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset() 457 if (!uid_eq(old->euid, new->euid) || in commit_creds() 459 !uid_eq(old->fsuid, new->fsuid) || in commit_creds() 478 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds() 497 if (!uid_eq(new->uid, old->uid) || in commit_creds() 498 !uid_eq(new->euid, old->euid) || in commit_creds() 499 !uid_eq(new->suid, old->suid) || in commit_creds() 500 !uid_eq(new->fsuid, old->fsuid)) in commit_creds()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | auth.c | 49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser() 71 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser() 79 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
|
/kernel/linux/linux-5.10/block/ |
D | ioprio.c | 44 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio() 45 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio() 148 if (!uid_eq(task_uid(p), uid) || in SYSCALL_DEFINE3() 241 if (!uid_eq(task_uid(p), user->uid) || in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/drivers/accesstokenid/ |
D | access_tokenid.c | 34 if (uid_eq(uid, GLOBAL_ROOT_UID) || in check_permission_for_set_tokenid() 35 uid_eq(uid, inode->i_uid)) { in check_permission_for_set_tokenid() 68 if (uid_eq(uid, GLOBAL_ROOT_UID)) in check_permission_for_ftokenid()
|
/kernel/linux/linux-5.10/fs/ |
D | attr.c | 23 if (uid_eq(current_fsuid(), inode->i_uid) && in chown_ok() 24 uid_eq(uid, inode->i_uid)) in chown_ok() 28 if (uid_eq(inode->i_uid, INVALID_UID) && in chown_ok() 36 if (uid_eq(current_fsuid(), inode->i_uid) && in chgrp_ok()
|
D | fcntl.c | 716 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm() 717 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm() 718 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
|
/kernel/linux/linux-5.10/fs/coda/ |
D | cache.c | 37 if (!uid_eq(cii->c_uid, current_fsuid())) { in coda_cache_enter() 69 uid_eq(cii->c_uid, current_fsuid()) && in coda_cache_check()
|
/kernel/linux/linux-5.10/fs/sharefs/ |
D | inode.c | 104 if (uid_eq(cur_uid, ROOT_UID)) in sharefs_permission() 106 if (uid_eq(cur_uid, inode->i_uid)) { in sharefs_permission()
|
/kernel/linux/linux-5.10/security/keys/ |
D | persistent.c | 147 if (!uid_eq(uid, current_uid()) && in keyctl_get_persistent() 148 !uid_eq(uid, current_euid()) && in keyctl_get_persistent()
|
D | keyctl.c | 985 if (user != (uid_t) -1 && !uid_eq(key->uid, uid)) in keyctl_chown_key() 995 if (user != (uid_t) -1 && !uid_eq(uid, key->uid)) { in keyctl_chown_key() 1003 unsigned maxkeys = uid_eq(uid, GLOBAL_ROOT_UID) ? in keyctl_chown_key() 1005 unsigned maxbytes = uid_eq(uid, GLOBAL_ROOT_UID) ? in keyctl_chown_key() 1091 if (capable(CAP_SYS_ADMIN) || uid_eq(key->uid, current_fsuid())) { in keyctl_setperm_key() 1677 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent() 1678 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent() 1679 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent() 1687 !uid_eq(pcred->session_keyring->uid, mycred->euid)) || in keyctl_session_to_parent() 1688 !uid_eq(mycred->session_keyring->uid, mycred->euid)) in keyctl_session_to_parent()
|
D | permission.c | 54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
|
D | proc.c | 307 unsigned maxkeys = uid_eq(user->uid, GLOBAL_ROOT_UID) ? in proc_key_users_show() 309 unsigned maxbytes = uid_eq(user->uid, GLOBAL_ROOT_UID) ? in proc_key_users_show()
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | mips-mt-fpaff.c | 56 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner() 57 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
|
/kernel/linux/linux-5.10/net/core/ |
D | scm.c | 56 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || in scm_check_creds() 57 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds()
|
D | fib_rules.c | 44 if (!uid_eq(rule->uid_range.start, fib_kuid_range_unset.start) || in fib_rule_matchall() 45 !uid_eq(rule->uid_range.end, fib_kuid_range_unset.end)) in fib_rule_matchall() 467 (!uid_eq(r->uid_range.start, rule->uid_range.start) || in rule_find() 468 !uid_eq(r->uid_range.end, rule->uid_range.end))) in rule_find() 728 if (!uid_eq(r->uid_range.start, rule->uid_range.start) || in rule_exists() 729 !uid_eq(r->uid_range.end, rule->uid_range.end)) in rule_exists()
|
/kernel/linux/linux-5.10/ipc/ |
D | util.c | 527 if (uid_eq(euid, ipcp->cuid) || in ipcperms() 528 uid_eq(euid, ipcp->uid)) in ipcperms() 708 if (uid_eq(euid, ipcp->cuid) || uid_eq(euid, ipcp->uid) || in ipcctl_obtain_check()
|
/kernel/linux/linux-5.10/fs/quota/ |
D | kqid.c | 19 return uid_eq(left.uid, right.uid); in qid_eq()
|
/kernel/linux/linux-5.10/kernel/cgroup/ |
D | cgroup-v1.c | 515 if (!uid_eq(cred->euid, GLOBAL_MEMMGR_UID) && in __cgroup1_procs_write() 516 !uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write() 518 if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) && in __cgroup1_procs_write() 520 !uid_eq(cred->euid, tcred->uid) && in __cgroup1_procs_write() 521 !uid_eq(cred->euid, tcred->suid)) in __cgroup1_procs_write()
|
/kernel/linux/linux-5.10/net/ax25/ |
D | ax25_uid.c | 56 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
|
/kernel/linux/linux-5.10/security/integrity/ima/ |
D | ima_policy.c | 126 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq, 138 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq, 141 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq, 168 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq, 172 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq, 1136 entry->uid_op = &uid_eq; in ima_parse_rule() 1137 entry->fowner_op = &uid_eq; in ima_parse_rule()
|
/kernel/linux/linux-5.10/fs/exfat/ |
D | file.c | 47 if (!uid_eq(current_fsuid(), inode->i_uid)) { in exfat_allow_set_time() 314 !uid_eq(attr->ia_uid, sbi->options.fs_uid)) || in exfat_setattr()
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | file.c | 102 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr()
|