Home
last modified time | relevance | path

Searched refs:fsgid (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v5.10/fs/nfsd/
Dauth.c38 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()
Dfilecache.c870 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
/Linux-v5.10/kernel/
Dcred.c54 .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()
Dgroups.c224 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
Dsys.c394 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()
Daudit.h129 kgid_t gid, egid, sgid, fsgid; member
Dauditsc.c408 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()
Dptrace.c302 caller_gid = cred->fsgid; in __ptrace_may_access()
/Linux-v5.10/net/sunrpc/
Dauth_unix.c80 …_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/
Dcred.h127 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/
Dxt_owner.c99 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt()
100 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
Dnf_log_common.c143 from_kgid_munged(&init_user_ns, cred->fsgid)); in nf_log_dump_sk_uid_gid()
Dnft_meta.c155 sock->file->f_cred->fsgid); in nft_meta_get_eval_skugid()
Dnfnetlink_log.c609 __be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid)); in __build_packet_message()
/Linux-v5.10/security/keys/
Dpermission.c62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
Drequest_key.c137 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()
Dprocess_keys.c395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed()
927 new->fsgid = old->fsgid; in key_change_session_keyring()
Drequest_key_auth.c217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
Dkey.c930 cred->fsuid, cred->fsgid, cred, perm, flags, NULL); in key_create_or_update()
/Linux-v5.10/fs/orangefs/
Dxattr.c102 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/
Dlsm.c235 id_permitted_for_cred(old, (kid_t){.gid = new->fsgid}, GID)) in safesetid_task_fix_setgid()
/Linux-v5.10/net/sched/
Dcls_flow.c219 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/Linux-v5.10/fs/proc/
Darray.c199 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state()
/Linux-v5.10/security/
Dcommoncap.c854 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
/Linux-v5.10/fs/overlayfs/
Ddir.c592 override_cred->fsgid = inode->i_gid; in ovl_create_or_link()

12