Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.c121 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
/linux-6.1.9/kernel/
Dcred.c53 .fsuid = GLOBAL_ROOT_UID,
325 new->suid = new->fsuid = new->euid; in prepare_exec_creds()
469 !uid_eq(old->fsuid, new->fsuid) || in commit_creds()
488 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds()
510 !uid_eq(new->fsuid, old->fsuid)) in commit_creds()
633 if (uid_lt(a->fsuid, b->fsuid)) in cred_fscmp()
635 if (uid_gt(a->fsuid, b->fsuid)) in cred_fscmp()
817 new->fsuid = inode->i_uid; in set_create_files_as()
853 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds()
Dauditsc.c400 return audit_compare_uid(cred->fsuid, name, f, ctx); in audit_field_compare()
412 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare()
422 cred->fsuid); in audit_field_compare()
427 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare()
430 return audit_uid_comparator(cred->suid, f->op, cred->fsuid); in audit_field_compare()
511 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); in audit_filter_rules()
1006 ctx->uid = ctx->euid = ctx->suid = ctx->fsuid = KUIDT_INIT(0); in audit_reset_context()
1665 from_kuid(&init_user_ns, cred->fsuid), in audit_log_uring()
Dsys.c569 new->fsuid = new->euid; in __sys_setreuid()
632 new->fsuid = new->euid = kuid; in __sys_setuid()
712 new->fsuid = new->euid; in __sys_setresuid()
853 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); in __sys_setfsuid()
864 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
866 if (!uid_eq(kuid, old->fsuid)) { in __sys_setfsuid()
867 new->fsuid = kuid; in __sys_setfsuid()
Daudit.h137 kuid_t uid, euid, suid, fsuid; member
/linux-6.1.9/net/sunrpc/
Dauth_unix.c88 …if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred… in unx_match()
135 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal()
/linux-6.1.9/include/linux/
Dcred.h125 kuid_t fsuid; /* UID for VFS ops */ member
387 #define current_fsuid() (current_cred_xxx(fsuid))
424 *(_fsuid) = __cred->fsuid; \
Dnfs_fs.h59 kuid_t fsuid; member
/linux-6.1.9/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()
Dnft_meta.c150 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
/linux-6.1.9/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()
931 new->fsuid = old->fsuid; in key_change_session_keyring()
Drequest_key_auth.c217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
/linux-6.1.9/security/
Dcommoncap.c937 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file()
1152 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1156 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
/linux-6.1.9/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-6.1.9/fs/ksmbd/
Dsmb_common.c630 cred->fsuid = make_kuid(&init_user_ns, uid); in ksmbd_override_fsids()
641 if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID)) in ksmbd_override_fsids()
/linux-6.1.9/security/safesetid/
Dlsm.c202 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
/linux-6.1.9/security/apparmor/
Dfile.c47 kuid_t fsuid = current_fsuid(); in file_audit_cb() local
62 from_kuid(&init_user_ns, fsuid)); in file_audit_cb()
/linux-6.1.9/net/sunrpc/auth_gss/
Dauth_gss.c551 kuid_t uid = cred->cr_cred->fsuid; in gss_setup_upcall()
620 cred->cr_cred->fsuid), err); in gss_refresh_upcall()
685 cred->cr_cred->fsuid), err); in gss_create_upcall()
1352 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred()
1506 ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid); in gss_match()
/linux-6.1.9/io_uring/
Dfdinfo.c32 seq_put_decimal_ull(m, "\t\t", from_kuid_munged(uns, cred->fsuid)); in io_uring_show_cred()
/linux-6.1.9/fs/coda/
Dfile.c247 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/linux-6.1.9/fs/nfs/
Ddir.c2900 if (uid_lt(a->fsuid, b->fsuid)) in access_cmp()
2902 if (uid_gt(a->fsuid, b->fsuid)) in access_cmp()
3080 cache->fsuid = cred->fsuid; in nfs_access_add_cache()
/linux-6.1.9/fs/cifs/
Dconnect.c4196 cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid) in cifs_construct_tcon() argument
4209 ctx->linux_uid = fsuid; in cifs_construct_tcon()
4210 ctx->cred_uid = fsuid; in cifs_construct_tcon()
4331 kuid_t fsuid = current_fsuid(); in cifs_sb_tlink() local
4338 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
4347 newtlink->tl_uid = fsuid; in cifs_sb_tlink()
4355 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
4388 tlink->tl_tcon = cifs_construct_tcon(cifs_sb, fsuid); in cifs_sb_tlink()

12