| /linux/fs/nfsd/ |
| H A D | auth.c | 36 new->fsgid = cred->cr_gid; in nfsd_setuser() 42 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 49 if (gid_eq(new->fsgid, GLOBAL_ROOT_GID)) in nfsd_setuser() 50 new->fsgid = exp->ex_anon_gid; in nfsd_setuser() 71 if (gid_eq(new->fsgid, INVALID_GID)) in nfsd_setuser() 72 new->fsgid = exp->ex_anon_gid; in nfsd_setuser()
|
| H A D | filecache.c | 86 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
|
| /linux/net/sunrpc/ |
| H 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()
|
| H A D | svcauth.c | 196 svc->cr_gid = KGIDT_INIT(from_kgid_munged(userns, cred->fsgid)); in svcauth_map_clnt_to_svc_cred_local()
|
| /linux/security/keys/ |
| H A D | permission.c | 62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
|
| H A D | request_key.c | 140 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key() 156 sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid)); in call_sbin_request_key() 396 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred, in construct_alloc_key()
|
| H 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()
|
| H A D | request_key_auth.c | 246 cred->fsuid, cred->fsgid, cred, in key_get_instantiation_authkey()
|
| H A D | key.c | 934 cred->fsuid, cred->fsgid, cred, perm, flags, NULL); in __key_create_or_update()
|
| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd.h | 196 __u32 fsgid; 192 __u32 fsgid; global() member
|
| /linux/kernel/ |
| H A D | sys.c | 456 new->fsgid = new->egid; in __sys_setregid() 498 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid() 500 new->egid = new->fsgid = kgid; in __sys_setgid() 835 gid_eq(kegid, old->fsgid))) && in __sys_setresgid() 859 new->fsgid = new->egid; in __sys_setresgid() 956 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); in __sys_setfsgid() 967 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid() 969 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid() 970 new->fsgid = kgid; in __sys_setfsgid()
|
| H A D | groups.c | 232 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
|
| H A D | auditsc.c | 405 return audit_compare_gid(cred->fsgid, name, f, ctx); in audit_field_compare() 440 return audit_gid_comparator(cred->gid, f->op, cred->fsgid); in audit_field_compare() 445 return audit_gid_comparator(cred->egid, f->op, cred->fsgid); in audit_field_compare() 448 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() 1016 ctx->gid = ctx->egid = ctx->sgid = ctx->fsgid = KGIDT_INIT(0); in audit_reset_context() 1636 " fsuid=%u egid=%u sgid=%u fsgid=%u", in audit_log_uring() 1646 from_kgid(&init_user_ns, cred->fsgid)); in audit_log_uring()
|
| H A D | ptrace.c | 331 caller_gid = cred->fsgid; in __ptrace_may_access()
|
| /linux/security/safesetid/ |
| H A D | lsm.c | 227 id_permitted_for_cred(old, (kid_t){.gid = new->fsgid}, GID)) in safesetid_task_fix_setgid()
|
| /linux/Documentation/translations/zh_CN/security/ |
| H A D | credentials.rst | 461 和 ``file->f_cred->fsgid`` 。
|
| /linux/fs/ |
| H A D | pidfs.c | 448 kinfo.fsgid = from_kgid_munged(user_ns, c->fsgid); in pidfd_info()
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | ipe.rst | 351 …ppid=2219 pid=2241 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 c… 355 …ppid=2219 pid=2472 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 c… 396 …4 pid=229 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=429… 440 …4 pid=229 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=429…
|
| /linux/include/linux/ |
| H A D | nfs_fs.h | 64 kgid_t fsgid; member
|
| /linux/fs/smb/server/ |
| H A D | smb_common.c | 778 cred->fsgid = make_kgid(&init_user_ns, gid); in __ksmbd_override_fsids()
|
| /linux/net/sched/ |
| H A D | cls_flow.c | 225 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
|
| /linux/fs/ceph/ |
| H A D | inode.c | 2701 kgid_t fsgid = from_vfsgid(idmap, i_user_ns(inode), attr->ia_vfsgid); in __ceph_setattr() local 2708 inode->i_gid = fsgid; in __ceph_setattr() 2711 !gid_eq(fsgid, inode->i_gid)) { in __ceph_setattr() 2713 from_kgid(&init_user_ns, fsgid)); in __ceph_setattr()
|
| /linux/fs/fuse/ |
| H A D | dev.c | 202 kgid_t fsgid; fuse_get_req() local
|
| /linux/security/ |
| H A D | commoncap.c | 964 new->sgid = new->fsgid = new->egid; in cap_bprm_creds_from_file()
|
| /linux/net/netfilter/ |
| H A D | nfnetlink_log.c | 645 __be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid)); in __build_packet_message()
|