Home
last modified time | relevance | path

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

123456

/linux/security/
A Dcommoncap.c771 { return uid_eq(cred->uid, uid); } in __is_real()
774 { return uid_eq(cred->euid, uid); } in __is_eff()
1091 if ((uid_eq(old->uid, root_uid) || in cap_emulate_setxuid()
1092 uid_eq(old->euid, root_uid) || in cap_emulate_setxuid()
1093 uid_eq(old->suid, root_uid)) && in cap_emulate_setxuid()
1094 (!uid_eq(new->uid, root_uid) && in cap_emulate_setxuid()
1095 !uid_eq(new->euid, root_uid) && in cap_emulate_setxuid()
1109 if (uid_eq(old->euid, root_uid) && !uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1111 if (!uid_eq(old->euid, root_uid) && uid_eq(new->euid, root_uid)) in cap_emulate_setxuid()
1147 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
[all …]
/linux/kernel/
A Dsys.c256 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE3()
327 if (!uid_eq(uid, cred->uid)) in SYSCALL_DEFINE2()
533 if (!uid_eq(old->uid, kruid) && in __sys_setreuid()
541 if (!uid_eq(old->uid, keuid) && in __sys_setreuid()
609 if (!uid_eq(kuid, old->uid)) { in __sys_setuid()
614 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid()
675 !uid_eq(kruid, old->euid) && !uid_eq(kruid, old->suid)) in __sys_setresuid()
678 !uid_eq(keuid, old->euid) && !uid_eq(keuid, old->suid)) in __sys_setresuid()
681 !uid_eq(ksuid, old->euid) && !uid_eq(ksuid, old->suid)) in __sys_setresuid()
847 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || in __sys_setfsuid()
[all …]
A 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()
679 if (old_ucounts->ns == new->user_ns && uid_eq(old_ucounts->uid, new->euid)) in set_cred_ucounts()
A Duser.c123 if (uid_eq(user->uid, uid)) { in uid_hash_find()
/linux/security/safesetid/
A 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()
159 if (uid_eq(new_id.uid, old->uid) || uid_eq(new_id.uid, old->euid) || in id_permitted_for_cred()
160 uid_eq(new_id.uid, old->suid)) in id_permitted_for_cred()
/linux/block/
A Dioprio.c44 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()
153 if (!uid_eq(task_uid(p), uid) || in SYSCALL_DEFINE3()
247 if (!uid_eq(task_uid(p), user->uid) || in SYSCALL_DEFINE2()
/linux/fs/nfsd/
A 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/fs/
A Dattr.c38 if (uid_eq(current_fsuid(), kuid) && uid_eq(uid, inode->i_uid)) in chown_ok()
42 if (uid_eq(kuid, INVALID_UID) && in chown_ok()
64 if (uid_eq(current_fsuid(), i_uid_into_mnt(mnt_userns, inode)) && in chgrp_ok()
A Dfcntl.c725 ret = ((uid_eq(fown->euid, GLOBAL_ROOT_UID) || in sigio_perm()
726 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm()
727 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
/linux/fs/coda/
A 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/security/keys/
A Dpersistent.c147 if (!uid_eq(uid, current_uid()) && in keyctl_get_persistent()
148 !uid_eq(uid, current_euid()) && in keyctl_get_persistent()
A 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()
A Dpermission.c54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
A 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/arch/mips/kernel/
A 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/net/core/
A 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()
A 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/ipc/
A 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/fs/9p/
A Dfid.c58 if (uid_eq(fid->uid, uid)) { in v9fs_fid_find_inode()
109 if (any || uid_eq(fid->uid, uid)) { in v9fs_fid_find()
/linux/fs/quota/
A Dkqid.c19 return uid_eq(left.uid, right.uid); in qid_eq()
/linux/net/ax25/
A Dax25_uid.c56 if (uid_eq(ax25_uid->uid, uid)) { in ax25_findbyuid()
/linux/fs/exfat/
A Dfile.c48 if (!uid_eq(current_fsuid(), inode->i_uid)) { in exfat_allow_set_time()
317 !uid_eq(attr->ia_uid, sbi->options.fs_uid)) || in exfat_setattr()
/linux/fs/gfs2/
A Dinode.c360 !uid_eq(dip->i_inode.i_uid, GLOBAL_ROOT_UID)) { in munge_mode_uid_gid()
363 else if (!uid_eq(dip->i_inode.i_uid, current_fsuid())) in munge_mode_uid_gid()
1052 !uid_eq(dip->i_inode.i_uid, current_fsuid()) && in gfs2_unlink_ok()
1053 !uid_eq(ip->i_inode.i_uid, current_fsuid()) && !capable(CAP_FOWNER)) in gfs2_unlink_ok()
1897 if (!(attr->ia_valid & ATTR_UID) || uid_eq(ouid, nuid)) in setattr_chown()
1915 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()
1930 if (!uid_eq(ouid, NO_UID_QUOTA_CHANGE) || in setattr_chown()
/linux/security/integrity/ima/
A Dima_policy.c148 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq,
160 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq,
163 .uid = GLOBAL_ROOT_UID, .uid_op = &uid_eq,
190 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
194 {.action = APPRAISE, .fowner = GLOBAL_ROOT_UID, .fowner_op = &uid_eq,
1343 entry->uid_op = &uid_eq; in ima_parse_rule()
1345 entry->fowner_op = &uid_eq; in ima_parse_rule()
/linux/fs/jfs/
A Dfile.c103 if ((iattr->ia_valid & ATTR_UID && !uid_eq(iattr->ia_uid, inode->i_uid)) || in jfs_setattr()

Completed in 41 milliseconds

123456