/linux/fs/nfsd/ |
A 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()
|
A D | filecache.c | 872 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
|
/linux/kernel/ |
A 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() 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 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() 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 D | sys.c | 556 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 D | audit.h | 137 kuid_t uid, euid, suid, fsuid; member
|
/linux/net/sunrpc/ |
A D | auth_unix.c | 80 …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 D | cred.h | 125 kuid_t fsuid; /* UID for VFS ops */ member 387 #define current_fsuid() (current_cred_xxx(fsuid)) 424 *(_fsuid) = __cred->fsuid; \
|
/linux/net/netfilter/ |
A 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()
|
A D | nft_meta.c | 151 sock->file->f_cred->fsuid); in nft_meta_get_eval_skugid()
|
/linux/security/ |
A D | commoncap.c | 932 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 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/security/keys/ |
A D | permission.c | 54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
|
A 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()
|
A 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()
|
A D | request_key_auth.c | 217 cred->fsuid, cred->fsgid, cred, in request_key_auth_new()
|
/linux/fs/ksmbd/ |
A D | smb_common.c | 623 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 D | lsm.c | 208 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
|
/linux/security/apparmor/ |
A 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/net/sunrpc/auth_gss/ |
A D | auth_gss.c | 550 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 D | file.c | 246 coda_flags, coda_file->f_cred->fsuid); in coda_release()
|
/linux/fs/cifs/ |
A D | connect.c | 3873 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 D | cls_flow.c | 207 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
|
/linux/fs/ |
A D | coredump.c | 558 cred->fsuid = GLOBAL_ROOT_UID; /* Dump root private */ in do_coredump()
|
/linux/fs/proc/ |
A D | array.c | 186 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state()
|