Home
last modified time | relevance | path

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

12345

/linux-6.1.9/security/
Dcommoncap.c91 if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid)) in cap_capable()
776 { return uid_eq(cred->uid, uid); } in __is_real()
779 { return uid_eq(cred->euid, uid); } in __is_eff()
838 { return !uid_eq(new->euid, old->uid); } in __is_setuid()
1096 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1097 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1098 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1099 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1100 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1101 !uid_eq(new->suid, root_uid))) { in cap_emulate_setxuid()
[all …]
/linux-6.1.9/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.1.9/kernel/
Dsys.c175 if (uid_eq(pcred->uid, cred->euid) || in set_one_prio_perm()
176 uid_eq(pcred->euid, cred->euid)) in set_one_prio_perm()
256 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE3()
262 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) in SYSCALL_DEFINE3()
265 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3()
324 else if (!uid_eq(uid, cred->uid)) { in SYSCALL_DEFINE2()
330 if (uid_eq(task_uid(p), uid) && task_pid_vnr(p)) { in SYSCALL_DEFINE2()
336 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2()
546 if (!uid_eq(old->uid, kruid) && in __sys_setreuid()
547 !uid_eq(old->euid, kruid) && in __sys_setreuid()
[all …]
Dcred.c426 uid_eq(subset_ns->owner, set->euid)) in cred_cap_issubset()
467 if (!uid_eq(old->euid, new->euid) || in commit_creds()
469 !uid_eq(old->fsuid, new->fsuid) || in commit_creds()
488 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds()
507 if (!uid_eq(new->uid, old->uid) || in commit_creds()
508 !uid_eq(new->euid, old->euid) || in commit_creds()
509 !uid_eq(new->suid, old->suid) || in commit_creds()
510 !uid_eq(new->fsuid, old->fsuid)) in commit_creds()
674 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.1.9/fs/nfsd/
Dauth.c49 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()
/linux-6.1.9/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.1.9/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.c985 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()
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.1.9/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.1.9/block/
Dioprio.c121 if (!uid_eq(task_uid(p), uid) || in SYSCALL_DEFINE3()
257 if (!uid_eq(task_uid(p), user->uid) || in SYSCALL_DEFINE2()
Dblk-ioc.c262 if (!uid_eq(tcred->uid, cred->euid) && in set_task_ioprio()
263 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
/linux-6.1.9/net/core/
Dscm.c56 ((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()
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.1.9/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.1.9/fs/
Dfcntl.c707 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
708 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
709 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
/linux-6.1.9/fs/9p/
Dfid.c62 if (uid_eq(fid->uid, uid)) { in v9fs_fid_find_inode()
113 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find()
/linux-6.1.9/fs/quota/
Dkqid.c19 return uid_eq(left.uid, right.uid); in qid_eq()
/linux-6.1.9/fs/exfat/
Dfile.c48 if (!uid_eq(current_fsuid(), inode->i_uid)) { in exfat_allow_set_time()
277 !uid_eq(attr->ia_uid, sbi->options.fs_uid)) || in exfat_setattr()
/linux-6.1.9/net/ax25/
Dax25_uid.c56 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
/linux-6.1.9/fs/jfs/
Dfile.c103 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr()
/linux-6.1.9/include/linux/
Duidgid.h61 static inline bool uid_eq(kuid_t left, kuid_t right) in uid_eq() function
/linux-6.1.9/fs/gfs2/
Dinode.c370 !uid_eq(dip->i_inode.i_uid, GLOBAL_ROOT_UID)) { in munge_mode_uid_gid()
373 else if (!uid_eq(dip->i_inode.i_uid, current_fsuid())) in munge_mode_uid_gid()
1064 !uid_eq(dip->i_inode.i_uid, current_fsuid()) && in gfs2_unlink_ok()
1065 !uid_eq(ip->i_inode.i_uid, current_fsuid()) && !capable(CAP_FOWNER)) in gfs2_unlink_ok()
1909 if (!(attr->ia_valid & ATTR_UID) || uid_eq(ouid, nuid)) in setattr_chown()
1927 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()
1942 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()

12345