Home
last modified time | relevance | path

Searched refs:fsuid (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v5.10/fs/nfsd/
Dauth.c37 new->fsuid = rqstp->rq_cred.cr_uid; in nfsd_setuser()
43 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
49 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
50 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
71 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser()
72 new->fsuid = exp->ex_anon_uid; in nfsd_setuser()
79 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
Dfilecache.c868 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
/Linux-v5.10/kernel/
Dcred.c53 .fsuid = GLOBAL_ROOT_UID,
318 new->suid = new->fsuid = new->euid; in prepare_exec_creds()
459 !uid_eq(old->fsuid, new->fsuid) || in commit_creds()
478 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds()
500 !uid_eq(new->fsuid, old->fsuid)) in commit_creds()
623 if (uid_lt(a->fsuid, b->fsuid)) in cred_fscmp()
625 if (uid_gt(a->fsuid, b->fsuid)) in cred_fscmp()
783 new->fsuid = inode->i_uid; in set_create_files_as()
819 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds()
Dsys.c549 new->fsuid = new->euid; in __sys_setreuid()
607 new->fsuid = new->euid = kuid; in __sys_setuid()
682 new->fsuid = new->euid; in __sys_setresuid()
818 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); in __sys_setfsuid()
829 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
831 if (!uid_eq(kuid, old->fsuid)) { in __sys_setfsuid()
832 new->fsuid = kuid; in __sys_setfsuid()
Daudit.h128 kuid_t uid, euid, suid, fsuid; member
Dauditsc.c406 return audit_compare_uid(cred->fsuid, name, f, ctx); in audit_field_compare()
418 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare()
428 cred->fsuid); in audit_field_compare()
433 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare()
436 return audit_uid_comparator(cred->suid, f->op, cred->fsuid); in audit_field_compare()
514 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); in audit_filter_rules()
/Linux-v5.10/net/sunrpc/
Dauth_unix.c80 …if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred… in unx_match()
127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal()
/Linux-v5.10/include/linux/
Dcred.h126 kuid_t fsuid; /* UID for VFS ops */ member
385 #define current_fsuid() (current_cred_xxx(fsuid))
421 *(_fsuid) = __cred->fsuid; \
/Linux-v5.10/net/netfilter/
Dxt_owner.c87 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt()
88 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
Dnf_log_common.c142 from_kuid_munged(&init_user_ns, cred->fsuid), in nf_log_dump_sk_uid_gid()
Dnft_meta.c151 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
/Linux-v5.10/security/keys/
Dpermission.c54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
Drequest_key.c137 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key()
152 sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid)); in call_sbin_request_key()
393 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred, in construct_alloc_key()
Dprocess_keys.c382 new_cred->thread_keyring->uid = new_cred->fsuid; in key_fsuid_changed()
923 new->fsuid = old->fsuid; in key_change_session_keyring()
Drequest_key_auth.c217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
/Linux-v5.10/security/
Dcommoncap.c853 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file()
1057 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1061 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
/Linux-v5.10/fs/orangefs/
Dxattr.c101 int fsuid; in orangefs_inode_getxattr() local
114 fsuid = from_kuid(&init_user_ns, current_fsuid()); in orangefs_inode_getxattr()
122 fsuid, in orangefs_inode_getxattr()
/Linux-v5.10/security/safesetid/
Dlsm.c211 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
/Linux-v5.10/security/apparmor/
Dfile.c45 kuid_t fsuid = current_fsuid(); in file_audit_cb() local
60 from_kuid(&init_user_ns, fsuid)); in file_audit_cb()
/Linux-v5.10/net/sunrpc/auth_gss/
Dauth_gss.c578 kuid_t uid = cred->cr_cred->fsuid; in gss_setup_upcall()
647 cred->cr_cred->fsuid), err); in gss_refresh_upcall()
712 cred->cr_cred->fsuid), err); in gss_create_upcall()
1363 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred()
1516 ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid); in gss_match()
/Linux-v5.10/fs/coda/
Dfile.c246 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/Linux-v5.10/fs/cifs/
Dconnect.c5081 cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid) in cifs_construct_tcon() argument
5094 vol_info->linux_uid = fsuid; in cifs_construct_tcon()
5095 vol_info->cred_uid = fsuid; in cifs_construct_tcon()
5213 kuid_t fsuid = current_fsuid(); in cifs_sb_tlink() local
5220 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
5229 newtlink->tl_uid = fsuid; in cifs_sb_tlink()
5237 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
5270 tlink->tl_tcon = cifs_construct_tcon(cifs_sb, fsuid); in cifs_sb_tlink()
/Linux-v5.10/net/sched/
Dcls_flow.c207 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
/Linux-v5.10/fs/
Dcoredump.c625 cred->fsuid = GLOBAL_ROOT_UID; /* Dump root private */ in do_coredump()
/Linux-v5.10/fs/proc/
Darray.c195 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state()

12