Home
last modified time | relevance | path

Searched refs:uid_eq (Results 1 – 25 of 114) sorted by relevance

12345

/linux-6.6.21/security/
Dcommoncap.c91 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
768 { return uid_eq(cred->uid, uid); } in __is_real()
771 { return uid_eq(cred->euid, uid); } in __is_eff()
830 { return !uid_eq(new->euid, old->uid); } in __is_setuid()
1088 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1089 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1090 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1091 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1092 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1093 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
[all …]
/linux-6.6.21/kernel/
Dsys.c182 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
183 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
263 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3()
269 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) in SYSCALL_DEFINE3()
272 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3()
331 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE2()
337 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) { in SYSCALL_DEFINE2()
343 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2()
553 if (!uid_eq(old->uid, kruid) && in __sys_setreuid()
554 !uid_eq(old->euid, kruid) && in __sys_setreuid()
[all …]
Dcred.c367 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset()
402 if (!uid_eq(old->euid, new->euid) || in commit_creds()
404 !uid_eq(old->fsuid, new->fsuid) || in commit_creds()
423 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds()
440 if (!uid_eq(new->uid, old->uid) || in commit_creds()
441 !uid_eq(new->euid, old->euid) || in commit_creds()
442 !uid_eq(new->suid, old->suid) || in commit_creds()
443 !uid_eq(new->fsuid, old->fsuid)) in commit_creds()
588 if (old_ucounts->ns == new->user_ns && uid_eq(old_ucounts->uid, new->uid)) in set_cred_ucounts()
Duser.c123 if (uid_eq(user->uid, uid)) { in uid_hash_find()
/linux-6.6.21/security/safesetid/
Dlsm.c40 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()
153 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred()
154 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
/linux-6.6.21/fs/nfsd/
Dauth.c47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
69 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser()
77 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
/linux-6.6.21/fs/coda/
Dcache.c37 if (!uid_eq(cii->c_uid, current_fsuid())) { in coda_cache_enter()
69 uid_eq(cii->c_uid, current_fsuid()) && in coda_cache_check()
/linux-6.6.21/security/keys/
Dpersistent.c147 if (!uid_eq(uid, current_uid()) && in keyctl_get_persistent()
148 !uid_eq(uid, current_euid()) && in keyctl_get_persistent()
Dkeyctl.c987 if (user != (uid_t) -1 && !uid_eq(key->uid, uid)) in keyctl_chown_key()
1000 if (user != (uid_t) -1 && !uid_eq(uid, key->uid)) { in keyctl_chown_key()
1008 unsigned maxkeys = uid_eq(uid, GLOBAL_ROOT_UID) ? in keyctl_chown_key()
1010 unsigned maxbytes = uid_eq(uid, GLOBAL_ROOT_UID) ? in keyctl_chown_key()
1096 if (uid_eq(key->uid, current_fsuid()) || capable(CAP_SYS_ADMIN)) { in keyctl_setperm_key()
1682 if (!uid_eq(pcred->uid, mycred->euid) || in keyctl_session_to_parent()
1683 !uid_eq(pcred->euid, mycred->euid) || in keyctl_session_to_parent()
1684 !uid_eq(pcred->suid, mycred->euid) || in keyctl_session_to_parent()
1692 !uid_eq(pcred->session_keyring->uid, mycred->euid)) || in keyctl_session_to_parent()
1693 !uid_eq(mycred->session_keyring->uid, mycred->euid)) in keyctl_session_to_parent()
Dpermission.c54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
Dproc.c307 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()
/linux-6.6.21/arch/mips/kernel/
Dmips-mt-fpaff.c56 match = (uid_eq(cred->euid, pcred->euid) || in check_same_owner()
57 uid_eq(cred->euid, pcred->uid)); in check_same_owner()
/linux-6.6.21/block/
Dioprio.c122 if (!uid_eq(task_uid(p), uid) || in SYSCALL_DEFINE3()
258 if (!uid_eq(task_uid(p), user->uid) || in SYSCALL_DEFINE2()
Dblk-ioc.c258 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
259 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
/linux-6.6.21/net/core/
Dscm.c57 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || in scm_check_creds()
58 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && in scm_check_creds()
Dfib_rules.c44 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()
/linux-6.6.21/ipc/
Dutil.c561 if (uid_eq(euid, ipcp->cuid) || in ipcperms()
562 uid_eq(euid, ipcp->uid)) in ipcperms()
742 if (uid_eq(euid, ipcp->cuid) || uid_eq(euid, ipcp->uid) || in ipcctl_obtain_check()
/linux-6.6.21/fs/9p/
Dfid.c71 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find_inode()
127 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find()
/linux-6.6.21/fs/
Dfcntl.c709 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
710 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
711 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
/linux-6.6.21/fs/quota/
Dkqid.c19 return uid_eq(left.uid, right.uid); in qid_eq()
/linux-6.6.21/fs/exfat/
Dfile.c48 if (!uid_eq(current_fsuid(), inode->i_uid)) { in exfat_allow_set_time()
274 !uid_eq(attr->ia_uid, sbi->options.fs_uid)) || in exfat_setattr()
/linux-6.6.21/net/ax25/
Dax25_uid.c56 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
/linux-6.6.21/fs/jfs/
Dfile.c103 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr()
/linux-6.6.21/include/linux/
Duidgid.h61 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() function
/linux-6.6.21/fs/gfs2/
Dinode.c385 !uid_eq(dip->i_inode.i_uid, GLOBAL_ROOT_UID)) { in munge_mode_uid_gid()
388 else if (!uid_eq(dip->i_inode.i_uid, current_fsuid())) in munge_mode_uid_gid()
1085 !uid_eq(dip->i_inode.i_uid, current_fsuid()) && in gfs2_unlink_ok()
1086 !uid_eq(ip->i_inode.i_uid, current_fsuid()) && !capable(CAP_FOWNER)) in gfs2_unlink_ok()
1938 if (!(attr->ia_valid & ATTR_UID) || uid_eq(ouid, nuid)) in setattr_chown()
1956 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()
1971 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()

12345