/Linux-v5.10/fs/nfsd/ |
D | auth.c | 38 new->fsgid = rqstp->rq_cred.cr_gid; in nfsd_setuser() 44 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 51 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser() 52 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 73 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser() 74 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
|
D | filecache.c | 870 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
|
/Linux-v5.10/kernel/ |
D | cred.c | 54 .fsgid = GLOBAL_ROOT_GID, 319 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 460 !gid_eq(old->fsgid, new->fsgid) || in commit_creds() 480 if (!gid_eq(new->fsgid, old->fsgid)) in commit_creds() 506 !gid_eq(new->fsgid, old->fsgid)) in commit_creds() 628 if (gid_lt(a->fsgid, b->fsgid)) in cred_fscmp() 630 if (gid_gt(a->fsgid, b->fsgid)) in cred_fscmp() 784 new->fsgid = inode->i_gid; in set_create_files_as() 824 from_kgid_munged(&init_user_ns, cred->fsgid)); in dump_invalid_creds()
|
D | groups.c | 224 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
|
D | sys.c | 394 new->fsgid = new->egid; in __sys_setregid() 436 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 438 new->egid = new->fsgid = kgid; in __sys_setgid() 765 new->fsgid = new->egid; in __sys_setresgid() 862 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); in __sys_setfsgid() 873 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid() 875 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid() 876 new->fsgid = kgid; in __sys_setfsgid()
|
D | audit.h | 129 kgid_t gid, egid, sgid, fsgid; member
|
D | auditsc.c | 408 return audit_compare_gid(cred->fsgid, name, f, ctx); in audit_field_compare() 443 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare() 448 return audit_gid_comparator(cred->egid, f->op, cred->fsgid); in audit_field_compare() 451 return audit_gid_comparator(cred->sgid, f->op, cred->fsgid); in audit_field_compare() 540 result = audit_gid_comparator(cred->fsgid, f->op, f->gid); in audit_filter_rules()
|
D | ptrace.c | 302 caller_gid = cred->fsgid; in __ptrace_may_access()
|
/Linux-v5.10/net/sunrpc/ |
D | auth_unix.c | 80 …_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid)) in unx_match() 128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal()
|
/Linux-v5.10/include/linux/ |
D | cred.h | 127 kgid_t fsgid; /* GID for VFS ops */ member 386 #define current_fsgid() (current_cred_xxx(fsgid)) 422 *(_fsgid) = __cred->fsgid; \
|
/Linux-v5.10/net/netfilter/ |
D | xt_owner.c | 99 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt() 100 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
|
D | nf_log_common.c | 143 from_kgid_munged(&init_user_ns, cred->fsgid)); in nf_log_dump_sk_uid_gid()
|
D | nft_meta.c | 155 sock->file->f_cred->fsgid); in nft_meta_get_eval_skugid()
|
D | nfnetlink_log.c | 609 __be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid)); in __build_packet_message()
|
/Linux-v5.10/security/keys/ |
D | permission.c | 62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
|
D | request_key.c | 137 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key() 153 sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid)); in call_sbin_request_key() 393 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred, in construct_alloc_key()
|
D | process_keys.c | 395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed() 927 new->fsgid = old->fsgid; in key_change_session_keyring()
|
D | request_key_auth.c | 217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
|
D | key.c | 930 cred->fsuid, cred->fsgid, cred, perm, flags, NULL); in key_create_or_update()
|
/Linux-v5.10/fs/orangefs/ |
D | xattr.c | 102 int fsgid; in orangefs_inode_getxattr() local 115 fsgid = from_kgid(&init_user_ns, current_fsgid()); in orangefs_inode_getxattr() 123 fsgid); in orangefs_inode_getxattr()
|
/Linux-v5.10/security/safesetid/ |
D | lsm.c | 235 id_permitted_for_cred(old, (kid_t){.gid = new->fsgid}, GID)) in safesetid_task_fix_setgid()
|
/Linux-v5.10/net/sched/ |
D | cls_flow.c | 219 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
|
/Linux-v5.10/fs/proc/ |
D | array.c | 199 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state()
|
/Linux-v5.10/security/ |
D | commoncap.c | 854 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
|
/Linux-v5.10/fs/overlayfs/ |
D | dir.c | 592 override_cred->fsgid = inode->i_gid; in ovl_create_or_link()
|