Home
last modified time | relevance | path

Searched refs:gid_eq (Results 1 – 25 of 80) sorted by relevance

1234

/linux/security/safesetid/
A Dlsm.c48 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()
163 if (gid_eq(new_id.gid, old->gid) || gid_eq(new_id.gid, old->egid) || in id_permitted_for_cred()
164 gid_eq(new_id.gid, old->sgid)) in id_permitted_for_cred()
/linux/fs/nfsd/
A Dauth.c51 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser()
59 if (gid_eq(GLOBAL_ROOT_GID, rqgi->gid[i])) in nfsd_setuser()
73 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser()
A Dfilecache.c874 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
881 if (!gid_eq(c1->group_info->gid[i], c2->group_info->gid[i])) in nfsd_match_cred()
/linux/kernel/
A Dsys.c380 if (gid_eq(old->gid, krgid) || in __sys_setregid()
381 gid_eq(old->egid, krgid) || in __sys_setregid()
388 if (gid_eq(old->gid, kegid) || in __sys_setregid()
389 gid_eq(old->egid, kegid) || in __sys_setregid()
390 gid_eq(old->sgid, kegid) || in __sys_setregid()
443 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
768 !gid_eq(krgid, old->egid) && !gid_eq(krgid, old->sgid)) in __sys_setresgid()
771 !gid_eq(kegid, old->egid) && !gid_eq(kegid, old->sgid)) in __sys_setresgid()
774 !gid_eq(ksgid, old->egid) && !gid_eq(ksgid, old->sgid)) in __sys_setresgid()
891 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
[all …]
A Dcred.c468 !gid_eq(old->egid, new->egid) || in commit_creds()
470 !gid_eq(old->fsgid, new->fsgid) || in commit_creds()
490 if (!gid_eq(new->fsgid, old->fsgid)) in commit_creds()
513 if (!gid_eq(new->gid, old->gid) || in commit_creds()
514 !gid_eq(new->egid, old->egid) || in commit_creds()
515 !gid_eq(new->sgid, old->sgid) || in commit_creds()
516 !gid_eq(new->fsgid, old->fsgid)) in commit_creds()
A Dgroups.c219 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
231 if (!gid_eq(grp, cred->egid)) in in_egroup_p()
A Dptrace.c336 gid_eq(caller_gid, tcred->egid) && in __ptrace_may_access()
337 gid_eq(caller_gid, tcred->sgid) && in __ptrace_may_access()
338 gid_eq(caller_gid, tcred->gid)) in __ptrace_may_access()
A Dauditfilter.c769 if (!gid_eq(a->fields[i].gid, b->fields[i].gid)) in audit_compare_rule()
1254 return gid_eq(left, right); in audit_gid_comparator()
1256 return !gid_eq(left, right); in audit_gid_comparator()
/linux/net/core/
A Dscm.c58 ((gid_eq(gid, cred->gid) || gid_eq(gid, cred->egid) || in scm_check_creds()
59 gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) { in scm_check_creds()
/linux/net/sunrpc/
A Dauth_unix.c80 …if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred… in unx_match()
93 if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i])) in unx_match()
/linux/fs/
A Dattr.c65 (in_group_p(gid) || gid_eq(gid, inode->i_gid))) in chgrp_ok()
69 if (gid_eq(kgid, INVALID_GID) && in chgrp_ok()
/linux/security/keys/
A Dpermission.c62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
A Dkeyctl.c990 if (group != (gid_t) -1 && !gid_eq(gid, key->gid) && !in_group_p(gid)) in keyctl_chown_key()
1680 !gid_eq(pcred->gid, mycred->egid) || in keyctl_session_to_parent()
1681 !gid_eq(pcred->egid, mycred->egid) || in keyctl_session_to_parent()
1682 !gid_eq(pcred->sgid, mycred->egid)) in keyctl_session_to_parent()
/linux/fs/quota/
A Dkqid.c21 return gid_eq(left.gid, right.gid); in qid_eq()
A Dquota_v1.c90 ((type == GRPQUOTA) && gid_eq(dquot->dq_id.gid, GLOBAL_ROOT_GID))) { in v1_commit_dqblk()
/linux/fs/jfs/
A Dfile.c104 (iattr->ia_valid & ATTR_GID && !gid_eq(iattr->ia_gid, inode->i_gid))) { in jfs_setattr()
/linux/fs/orangefs/
A Dinode.c183 if (!uid_eq(ow->uid, wr->uid) || !gid_eq(ow->gid, wr->gid)) { in orangefs_writepages_callback()
360 gid_eq(wr->gid, current_fsgid())) { in orangefs_write_begin()
677 gid_eq(wr->gid, current_fsgid())) { in orangefs_page_mkwrite()
818 gid_eq(ORANGEFS_I(inode)->attr_gid, current_fsgid())) { in __orangefs_setattr()
/linux/include/linux/
A Duidgid.h66 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() function
A Dquotaops.h27 (ia->ia_valid & ATTR_GID && !gid_eq(ia->ia_gid, inode->i_gid)); in is_quota_modification()
/linux/fs/udf/
A Dfile.c274 !gid_eq(attr->ia_gid, UDF_SB(sb)->s_gid)) in udf_setattr()
/linux/fs/adfs/
A Dinode.c311 (ia_valid & ATTR_GID && !gid_eq(attr->ia_gid, ADFS_SB(sb)->s_gid))) in adfs_notify_change()
A Dsuper.c106 if (!gid_eq(asb->s_gid, GLOBAL_ROOT_GID)) in adfs_show_options()
/linux/fs/hpfs/
A Dnamei.c108 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_mkdir()
198 !gid_eq(result->i_gid, current_fsgid()) || in hpfs_create()
A Dinode.c160 if (!gid_eq(i->i_gid, hpfs_sb(i->i_sb)->sb_gid) || hpfs_inode->i_ea_gid) { in hpfs_write_inode_ea()
/linux/fs/autofs/
A Dinode.c73 if (!gid_eq(root_inode->i_gid, GLOBAL_ROOT_GID)) in autofs_show_options()

Completed in 48 milliseconds

1234