/linux-6.12.1/fs/nfsd/ |
D | auth.c | 35 new->fsuid = cred->cr_uid; in nfsd_setuser() 41 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 47 if (uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser() 48 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 69 if (uid_eq(new->fsuid, INVALID_UID)) in nfsd_setuser() 70 new->fsuid = exp->ex_anon_uid; in nfsd_setuser() 77 if (!uid_eq(new->fsuid, GLOBAL_ROOT_UID)) in nfsd_setuser()
|
D | filecache.c | 83 if (!uid_eq(c1->fsuid, c2->fsuid)) in nfsd_match_cred()
|
/linux-6.12.1/kernel/ |
D | cred.c | 52 .fsuid = GLOBAL_ROOT_UID, 275 new->suid = new->fsuid = new->euid; in prepare_exec_creds() 408 !uid_eq(old->fsuid, new->fsuid) || in commit_creds() 427 if (!uid_eq(new->fsuid, old->fsuid)) in commit_creds() 447 !uid_eq(new->fsuid, old->fsuid)) in commit_creds() 550 if (uid_lt(a->fsuid, b->fsuid)) in cred_fscmp() 552 if (uid_gt(a->fsuid, b->fsuid)) in cred_fscmp() 730 new->fsuid = inode->i_uid; in set_create_files_as()
|
D | sys.c | 585 new->fsuid = new->euid; in __sys_setreuid() 648 new->fsuid = new->euid = kuid; in __sys_setuid() 703 uid_eq(keuid, old->fsuid))) && in __sys_setresuid() 733 new->fsuid = new->euid; in __sys_setresuid() 880 old_fsuid = from_kuid_munged(old->user_ns, old->fsuid); in __sys_setfsuid() 891 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid() 893 if (!uid_eq(kuid, old->fsuid)) { in __sys_setfsuid() 894 new->fsuid = kuid; in __sys_setfsuid()
|
D | auditsc.c | 403 return audit_compare_uid(cred->fsuid, name, f, ctx); in audit_field_compare() 415 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); in audit_field_compare() 425 cred->fsuid); in audit_field_compare() 430 return audit_uid_comparator(cred->euid, f->op, cred->fsuid); in audit_field_compare() 433 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() 1013 ctx->uid = ctx->euid = ctx->suid = ctx->fsuid = KUIDT_INIT(0); in audit_reset_context() 1669 from_kuid(&init_user_ns, cred->fsuid), in audit_log_uring()
|
D | audit.h | 137 kuid_t uid, euid, suid, fsuid; member
|
/linux-6.12.1/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()
|
D | svcauth.c | 195 svc->cr_uid = KUIDT_INIT(from_kuid_munged(userns, cred->fsuid)); in svcauth_map_clnt_to_svc_cred_local()
|
/linux-6.12.1/include/linux/ |
D | cred.h | 119 kuid_t fsuid; /* UID for VFS ops */ member 378 #define current_fsuid() (current_cred_xxx(fsuid)) 415 *(_fsuid) = __cred->fsuid; \
|
/linux-6.12.1/net/netfilter/ |
D | xt_owner.c | 90 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt() 91 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
|
/linux-6.12.1/security/keys/ |
D | permission.c | 54 if (uid_eq(key->uid, cred->fsuid)) { in key_task_permission()
|
D | request_key.c | 140 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key() 155 sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid)); in call_sbin_request_key() 396 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.12.1/security/ |
D | commoncap.c | 930 new->suid = new->fsuid = new->euid; in cap_bprm_creds_from_file() 1145 if (uid_eq(old->fsuid, root_uid) && !uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid() 1149 if (!uid_eq(old->fsuid, root_uid) && uid_eq(new->fsuid, root_uid)) in cap_task_fix_setuid()
|
/linux-6.12.1/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.12.1/security/apparmor/ |
D | file.c | 48 kuid_t fsuid = ad->subj_cred ? ad->subj_cred->fsuid : current_fsuid(); in file_audit_cb() local 63 from_kuid(&init_user_ns, fsuid)); in file_audit_cb()
|
/linux-6.12.1/security/safesetid/ |
D | lsm.c | 203 id_permitted_for_cred(old, (kid_t){.uid = new->fsuid}, UID)) in safesetid_task_fix_setuid()
|
/linux-6.12.1/fs/smb/server/ |
D | smb_common.c | 761 cred->fsuid = make_kuid(&init_user_ns, uid); in __ksmbd_override_fsids() 779 if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID)) in __ksmbd_override_fsids()
|
/linux-6.12.1/net/sunrpc/auth_gss/ |
D | auth_gss.c | 567 kuid_t uid = cred->cr_cred->fsuid; in gss_setup_upcall() 636 cred->cr_cred->fsuid), err); in gss_refresh_upcall() 701 cred->cr_cred->fsuid), err); in gss_create_upcall() 1369 return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits); in gss_hash_cred() 1523 ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid); in gss_match()
|
/linux-6.12.1/Documentation/admin-guide/LSM/ |
D | ipe.rst | 338 …0 a2=5 a3=812 items=0 ppid=2219 pid=2241 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fs… 342 …00 a2=4 a3=21 items=0 ppid=2219 pid=2472 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fs… 383 …2 a3=2 items=0 ppid=184 pid=229 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fs… 427 …7 a3=2 items=0 ppid=184 pid=229 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fs… 461 …1065e5c60 a2=2 a3=0 items=0 ppid=405 pid=441 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=) 465 …1065e5c60 a2=2 a3=0 items=0 ppid=405 pid=441 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=)
|
/linux-6.12.1/io_uring/ |
D | fdinfo.c | 31 seq_put_decimal_ull(m, "\t\t", from_kuid_munged(uns, cred->fsuid)); in io_uring_show_cred()
|
/linux-6.12.1/fs/coda/ |
D | file.c | 272 coda_flags, coda_file->f_cred->fsuid); in coda_release()
|
/linux-6.12.1/fs/smb/client/ |
D | connect.c | 4038 cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid) in cifs_construct_tcon() argument 4052 ctx->linux_uid = fsuid; in cifs_construct_tcon() 4053 ctx->cred_uid = fsuid; in cifs_construct_tcon() 4206 kuid_t fsuid = current_fsuid(); in cifs_sb_tlink() local 4213 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink() 4222 newtlink->tl_uid = fsuid; in cifs_sb_tlink() 4230 tlink = tlink_rb_search(&cifs_sb->tlink_tree, fsuid); in cifs_sb_tlink() 4264 tlink->tl_tcon = cifs_construct_tcon(cifs_sb, fsuid); in cifs_sb_tlink()
|
/linux-6.12.1/fs/nfs/ |
D | dir.c | 2974 if (uid_lt(a->fsuid, b->fsuid)) in access_cmp() 2976 if (uid_gt(a->fsuid, b->fsuid)) in access_cmp() 3181 cache->fsuid = cred->fsuid; in nfs_access_add_cache()
|