Home
last modified time | relevance | path

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

12

/linux/fs/nfsd/
A 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()
A Dfilecache.c872 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
/linux/kernel/
A 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()
822 new->fsuid = inode->i_uid; in set_create_files_as()
858 from_kuid_munged(&init_user_ns, cred->fsuid)); in dump_invalid_creds()
A 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()
997 ctx->uid = ctx->euid = ctx->suid = ctx->fsuid = KUIDT_INIT(0); in audit_reset_context()
1629 from_kuid(&init_user_ns, cred->fsuid), in audit_log_uring()
A Dsys.c556 new->fsuid = new->euid; in __sys_setreuid()
618 new->fsuid = new->euid = kuid; in __sys_setuid()
697 new->fsuid = new->euid; in __sys_setresuid()
837 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); in __sys_setfsuid()
848 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid()
850 if (!uid_eq(kuid, old->fsuid)) { in __sys_setfsuid()
851 new->fsuid = kuid; in __sys_setfsuid()
A Daudit.h137 kuid_t uid, euid, suid, fsuid; member
/linux/net/sunrpc/
A 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/include/linux/
A Dcred.h125 kuid_t fsuid; /* UID for VFS ops */ member
387 #define current_fsuid() (current_cred_xxx(fsuid))
424 *(_fsuid) = __cred->fsuid; \
/linux/net/netfilter/
A 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()
A Dnft_meta.c151 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
/linux/security/
A Dcommoncap.c932 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file()
1147 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
1151 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
/linux/fs/orangefs/
A 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/security/keys/
A Dpermission.c54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
A 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()
A 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()
A Drequest_key_auth.c217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
/linux/fs/ksmbd/
A Dsmb_common.c623 cred->fsuid = make_kuid(current_user_ns(), uid); in ksmbd_override_fsids()
634 if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID)) in ksmbd_override_fsids()
/linux/security/safesetid/
A Dlsm.c208 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
/linux/security/apparmor/
A Dfile.c47 kuid_t fsuid = current_fsuid(); in file_audit_cb() local
62 from_kuid(&init_user_ns, fsuid)); in file_audit_cb()
/linux/net/sunrpc/auth_gss/
A Dauth_gss.c550 kuid_t uid = cred->cr_cred->fsuid; in gss_setup_upcall()
619 cred->cr_cred->fsuid), err); in gss_refresh_upcall()
684 cred->cr_cred->fsuid), err); in gss_create_upcall()
1335 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred()
1488 ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid); in gss_match()
/linux/fs/coda/
A Dfile.c246 coda_flags, coda_file->f_cred->fsuid); in coda_release()
/linux/fs/cifs/
A Dconnect.c3873 cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid) in cifs_construct_tcon() argument
3886 ctx->linux_uid = fsuid; in cifs_construct_tcon()
3887 ctx->cred_uid = fsuid; in cifs_construct_tcon()
4006 kuid_t fsuid = current_fsuid(); in cifs_sb_tlink() local
4013 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
4022 newtlink->tl_uid = fsuid; in cifs_sb_tlink()
4030 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink()
4063 tlink->tl_tcon = cifs_construct_tcon(cifs_sb, fsuid); in cifs_sb_tlink()
/linux/net/sched/
A Dcls_flow.c207 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
/linux/fs/
A Dcoredump.c558 cred->fsuid = GLOBAL_ROOT_UID; /* Dump root private */ in do_coredump()
/linux/fs/proc/
A Darray.c186 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state()

Completed in 54 milliseconds

12