/linux-6.6.21/security/safesetid/ |
D | lsm.c | 48 if (!gid_eq(rule->src_id.gid, src.gid)) in _setid_policy_lookup() 50 if (gid_eq(rule->dst_id.gid, dst.gid)){ in _setid_policy_lookup() 157 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred() 158 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred()
|
/linux-6.6.21/fs/nfsd/ |
D | auth.c | 49 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser() 57 if (gid_eq(GLOBAL_ROOT_GID, rqgi->gid[i])) in nfsd_setuser() 71 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser()
|
D | filecache.c | 87 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred() 94 if (!gid_eq(c1->group_info->gid[i], c2->group_info->gid[i])) in nfsd_match_cred()
|
/linux-6.6.21/kernel/ |
D | sys.c | 395 if (gid_eq(old->gid, krgid) || in __sys_setregid() 396 gid_eq(old->egid, krgid) || in __sys_setregid() 403 if (gid_eq(old->gid, kegid) || in __sys_setregid() 404 gid_eq(old->egid, kegid) || in __sys_setregid() 405 gid_eq(old->sgid, kegid) || in __sys_setregid() 413 (egid != (gid_t) -1 && !gid_eq(kegid, old->gid))) in __sys_setregid() 458 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 792 if ((rgid == (gid_t) -1 || gid_eq(krgid, old->gid)) && in __sys_setresgid() 793 (egid == (gid_t) -1 || (gid_eq(kegid, old->egid) && in __sys_setresgid() 794 gid_eq(kegid, old->fsgid))) && in __sys_setresgid() [all …]
|
D | cred.c | 403 !gid_eq(old->egid, new->egid) || in commit_creds() 405 !gid_eq(old->fsgid, new->fsgid) || in commit_creds() 425 if (!gid_eq(new->fsgid, old->fsgid)) in commit_creds() 446 if (!gid_eq(new->gid, old->gid) || in commit_creds() 447 !gid_eq(new->egid, old->egid) || in commit_creds() 448 !gid_eq(new->sgid, old->sgid) || in commit_creds() 449 !gid_eq(new->fsgid, old->fsgid)) in commit_creds()
|
D | groups.c | 232 if (!gid_eq(grp, cred->fsgid)) in in_group_p() 244 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
|
D | ptrace.c | 331 gid_eq(caller_gid, tcred->egid) && in __ptrace_may_access() 332 gid_eq(caller_gid, tcred->sgid) && in __ptrace_may_access() 333 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
|
D | auditfilter.c | 770 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule() 1255 return gid_eq(left, right); in audit_gid_comparator() 1257 return !gid_eq(left, right); in audit_gid_comparator()
|
/linux-6.6.21/net/core/ |
D | scm.c | 59 ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || in scm_check_creds() 60 gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) { in scm_check_creds()
|
/linux-6.6.21/net/sunrpc/ |
D | auth_unix.c | 88 …if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred… in unx_match() 101 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) in unx_match()
|
/linux-6.6.21/security/keys/ |
D | permission.c | 62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
|
D | keyctl.c | 992 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key() 1685 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent() 1686 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent() 1687 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
|
/linux-6.6.21/fs/quota/ |
D | kqid.c | 21 return gid_eq(left.gid, right.gid); in qid_eq()
|
D | quota_v1.c | 90 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { in v1_commit_dqblk()
|
/linux-6.6.21/fs/jfs/ |
D | file.c | 104 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr()
|
/linux-6.6.21/include/linux/ |
D | uidgid.h | 66 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() function
|
/linux-6.6.21/fs/orangefs/ |
D | inode.c | 176 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback() 351 gid_eq(wr->gid, current_fsgid())) { in orangefs_write_begin() 664 gid_eq(wr->gid, current_fsgid())) { in orangefs_page_mkwrite() 805 gid_eq(ORANGEFS_I(inode)->attr_gid, current_fsgid())) { in __orangefs_setattr()
|
/linux-6.6.21/fs/udf/ |
D | file.c | 230 !gid_eq(attr->ia_gid, UDF_SB(sb)->s_gid)) in udf_setattr()
|
/linux-6.6.21/fs/adfs/ |
D | inode.c | 312 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change()
|
D | super.c | 106 if (!gid_eq(asb->s_gid, GLOBAL_ROOT_GID)) in adfs_show_options()
|
/linux-6.6.21/fs/autofs/ |
D | inode.c | 74 if (!gid_eq(root_inode->i_gid, GLOBAL_ROOT_GID)) in autofs_show_options()
|
/linux-6.6.21/fs/exfat/ |
D | file.c | 276 !gid_eq(attr->ia_gid, sbi->options.fs_gid)) || in exfat_setattr()
|
/linux-6.6.21/fs/hpfs/ |
D | namei.c | 105 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_mkdir() 193 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_create()
|
D | inode.c | 160 if (!gid_eq(i->i_gid, hpfs_sb(i->i_sb)->sb_gid) || hpfs_inode->i_ea_gid) { in hpfs_write_inode_ea()
|
/linux-6.6.21/fs/ubifs/ |
D | budget.c | 260 (!gid_eq(c->rp_gid, GLOBAL_ROOT_GID) && in_group_p(c->rp_gid))) in can_use_rp()
|