Home
last modified time | relevance | path

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

12

/linux-6.12.1/fs/nfsd/
Dauth.c36 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()
Dfilecache.c85 if (!gid_eq(c1->fsgid, c2->fsgid)) in nfsd_match_cred()
/linux-6.12.1/kernel/
Dcred.c53 .fsgid = GLOBAL_ROOT_GID,
276 new->sgid = new->fsgid = new->egid; in prepare_exec_creds()
409 !gid_eq(old->fsgid, new->fsgid) || in commit_creds()
429 if (!gid_eq(new->fsgid, old->fsgid)) in commit_creds()
453 !gid_eq(new->fsgid, old->fsgid)) in commit_creds()
555 if (gid_lt(a->fsgid, b->fsgid)) in cred_fscmp()
557 if (gid_gt(a->fsgid, b->fsgid)) in cred_fscmp()
731 new->fsgid = inode->i_gid; in set_create_files_as()
Dsys.c424 new->fsgid = new->egid; in __sys_setregid()
466 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
468 new->egid = new->fsgid = kgid; in __sys_setgid()
803 gid_eq(kegid, old->fsgid))) && in __sys_setresgid()
827 new->fsgid = new->egid; in __sys_setresgid()
924 old_fsgid = from_kgid_munged(old->user_ns, old->fsgid); in __sys_setfsgid()
935 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid()
937 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid()
938 new->fsgid = kgid; in __sys_setfsgid()
Dgroups.c232 if (!gid_eq(grp, cred->fsgid)) in in_group_p()
Dauditsc.c405 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()
1014 ctx->gid = ctx->egid = ctx->sgid = ctx->fsgid = KGIDT_INIT(0); in audit_reset_context()
1672 from_kgid(&init_user_ns, cred->fsgid)); in audit_log_uring()
Daudit.h138 kgid_t gid, egid, sgid, fsgid; member
/linux-6.12.1/net/sunrpc/
Dauth_unix.c88 …_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()
Dsvcauth.c196 svc->cr_gid = KGIDT_INIT(from_kgid_munged(userns, cred->fsgid)); in svcauth_map_clnt_to_svc_cred_local()
/linux-6.12.1/include/linux/
Dcred.h120 kgid_t fsgid; /* GID for VFS ops */ member
379 #define current_fsgid() (current_cred_xxx(fsgid))
416 *(_fsgid) = __cred->fsgid; \
Dnfs_fs.h64 kgid_t fsgid; member
/linux-6.12.1/net/netfilter/
Dxt_owner.c104 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt()
105 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
/linux-6.12.1/security/keys/
Dpermission.c62 if (gid_eq(key->gid, cred->fsgid)) { in key_task_permission()
Drequest_key.c140 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()
Dprocess_keys.c395 new_cred->thread_keyring->gid = new_cred->fsgid; in key_fsgid_changed()
935 new->fsgid = old->fsgid; in key_change_session_keyring()
Drequest_key_auth.c217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
/linux-6.12.1/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-6.12.1/security/safesetid/
Dlsm.c227 id_permitted_for_cred(old, (kid_t){.gid = new->fsgid}, GID)) in safesetid_task_fix_setgid()
/linux-6.12.1/io_uring/
Dfdinfo.c35 seq_put_decimal_ull(m, "\t\t", from_kgid_munged(uns, cred->fsgid)); in io_uring_show_cred()
/linux-6.12.1/fs/nfs/
Ddir.c2979 if (gid_lt(a->fsgid, b->fsgid)) in access_cmp()
2981 if (gid_gt(a->fsgid, b->fsgid)) in access_cmp()
3182 cache->fsgid = cred->fsgid; in nfs_access_add_cache()
/linux-6.12.1/Documentation/admin-guide/LSM/
Dipe.rst338 …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…
342 …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…
383 …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…
427 …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-6.12.1/fs/
Dopen.c393 !gid_eq(cred->fsgid, cred->gid)) in access_need_override_creds()
427 override_cred->fsgid = override_cred->gid; in access_override_creds()
/linux-6.12.1/fs/smb/server/
Dsmb_common.c762 cred->fsgid = make_kgid(&init_user_ns, gid); in __ksmbd_override_fsids()
/linux-6.12.1/net/sched/
Dcls_flow.c220 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/linux-6.12.1/fs/fuse/
Ddev.c119 kgid_t fsgid; in fuse_get_req() local
165 fsgid = no_idmap ? current_fsgid() : mapped_fsgid(idmap, fc->user_ns); in fuse_get_req()
167 req->in.h.gid = from_kgid(fc->user_ns, fsgid); in fuse_get_req()

12