/linux-6.1.9/fs/nfsd/ |
D | auth.c | 37 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()
|
D | filecache.c | 121 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
|
/linux-6.1.9/kernel/ |
D | cred.c | 53 .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()
|
D | auditsc.c | 400 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()
|
D | sys.c | 569 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()
|
D | audit.h | 137 kuid_t uid, euid, suid, fsuid; member
|
/linux-6.1.9/net/sunrpc/ |
D | auth_unix.c | 88 …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/ |
D | cred.h | 125 kuid_t fsuid; /* UID for VFS ops */ member 387 #define current_fsuid() (current_cred_xxx(fsuid)) 424 *(_fsuid) = __cred->fsuid; \
|
D | nfs_fs.h | 59 kuid_t fsuid; member
|
/linux-6.1.9/net/netfilter/ |
D | xt_owner.c | 87 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt() 88 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
|
D | nft_meta.c | 150 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
|
/linux-6.1.9/security/keys/ |
D | permission.c | 54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
|
D | request_key.c | 137 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()
|
D | process_keys.c | 382 new_cred->thread_keyring->uid = new_cred->fsuid; in key_fsuid_changed() 931 new->fsuid = old->fsuid; in key_change_session_keyring()
|
D | request_key_auth.c | 217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
|
/linux-6.1.9/security/ |
D | commoncap.c | 937 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/ |
D | xattr.c | 101 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/ |
D | smb_common.c | 630 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/ |
D | lsm.c | 202 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
|
/linux-6.1.9/security/apparmor/ |
D | file.c | 47 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/ |
D | auth_gss.c | 551 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/ |
D | fdinfo.c | 32 seq_put_decimal_ull(m, "\t\t", from_kuid_munged(uns, cred->fsuid)); in io_uring_show_cred()
|
/linux-6.1.9/fs/coda/ |
D | file.c | 247 coda_flags, coda_file->f_cred->fsuid); in coda_release()
|
/linux-6.1.9/fs/nfs/ |
D | dir.c | 2900 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/ |
D | connect.c | 4196 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()
|