/linux-6.3-rc2/fs/nfsd/ |
A 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()
|
A D | filecache.c | 148 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
|
/linux-6.3-rc2/kernel/ |
A D | cred.c | 54 .fsgid = GLOBAL_ROOT_GID, 326 new->sgid = new->fsgid = new->egid; in prepare_exec_creds() 470 !gid_eq(old->fsgid, new->fsgid) || in commit_creds() 490 if (!gid_eq(new->fsgid, old->fsgid)) in commit_creds() 516 !gid_eq(new->fsgid, old->fsgid)) in commit_creds() 638 if (gid_lt(a->fsgid, b->fsgid)) in cred_fscmp() 640 if (gid_gt(a->fsgid, b->fsgid)) in cred_fscmp() 817 new->fsgid = inode->i_gid; in set_create_files_as() 857 from_kgid_munged(&init_user_ns, cred->fsgid)); in dump_invalid_creds()
|
A D | groups.c | 232 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
|
A D | sys.c | 408 new->fsgid = new->egid; in __sys_setregid() 450 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 452 new->egid = new->fsgid = kgid; in __sys_setgid() 800 new->fsgid = new->egid; in __sys_setresgid() 897 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); in __sys_setfsgid() 908 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid() 910 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid() 911 new->fsgid = kgid; in __sys_setfsgid()
|
A D | auditsc.c | 403 return audit_compare_gid(cred->fsgid, name, f, ctx); in audit_field_compare() 438 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare() 443 return audit_gid_comparator(cred->egid, f->op, cred->fsgid); in audit_field_compare() 446 return audit_gid_comparator(cred->sgid, f->op, cred->fsgid); in audit_field_compare() 538 result = audit_gid_comparator(cred->fsgid, f->op, f->gid); in audit_filter_rules() 1011 ctx->gid = ctx->egid = ctx->sgid = ctx->fsgid = KGIDT_INIT(0); in audit_reset_context() 1668 from_kgid(&init_user_ns, cred->fsgid)); in audit_log_uring()
|
A D | audit.h | 138 kgid_t gid, egid, sgid, fsgid; member
|
/linux-6.3-rc2/net/sunrpc/ |
A D | auth_unix.c | 88 …_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid)) in unx_match() 136 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal()
|
/linux-6.3-rc2/include/linux/ |
A D | cred.h | 126 kgid_t fsgid; /* GID for VFS ops */ member 388 #define current_fsgid() (current_cred_xxx(fsgid)) 425 *(_fsgid) = __cred->fsgid; \
|
A D | nfs_fs.h | 60 kgid_t fsgid; member
|
/linux-6.3-rc2/net/netfilter/ |
A 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()
|
A D | nft_meta.c | 154 sock->file->f_cred->fsgid); in nft_meta_get_eval_skugid()
|
A D | nf_log_syslog.c | 176 from_kgid_munged(&init_user_ns, cred->fsgid)); in nf_log_dump_sk_uid_gid()
|
/linux-6.3-rc2/security/keys/ |
A D | permission.c | 62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
|
A 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()
|
A D | process_keys.c | 395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed() 935 new->fsgid = old->fsgid; in key_change_session_keyring()
|
A D | request_key_auth.c | 217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
|
/linux-6.3-rc2/fs/orangefs/ |
A 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-6.3-rc2/security/safesetid/ |
A D | lsm.c | 226 id_permitted_for_cred(old, (kid_t){.gid = new->fsgid}, GID)) in safesetid_task_fix_setgid()
|
/linux-6.3-rc2/io_uring/ |
A D | fdinfo.c | 35 seq_put_decimal_ull(m, "\t\t", from_kgid_munged(uns, cred->fsgid)); in io_uring_show_cred()
|
/linux-6.3-rc2/fs/nfs/ |
A D | dir.c | 2910 if (gid_lt(a->fsgid, b->fsgid)) in access_cmp() 2912 if (gid_gt(a->fsgid, b->fsgid)) in access_cmp() 3114 cache->fsgid = cred->fsgid; in nfs_access_add_cache()
|
/linux-6.3-rc2/fs/ksmbd/ |
A D | smb_common.c | 631 cred->fsgid = make_kgid(&init_user_ns, gid); in ksmbd_override_fsids()
|
/linux-6.3-rc2/fs/ |
A D | open.c | 384 !gid_eq(cred->fsgid, cred->gid)) in access_need_override_creds() 418 override_cred->fsgid = override_cred->gid; in access_override_creds()
|
/linux-6.3-rc2/net/sched/ |
A D | cls_flow.c | 220 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
|
/linux-6.3-rc2/fs/proc/ |
A D | array.c | 195 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state()
|