/linux-6.1.9/kernel/ |
D | uid16.c | 117 struct user_namespace *user_ns = current_user_ns(); in groups16_to_user() 135 struct user_namespace *user_ns = current_user_ns(); in groups16_from_user() 205 return high2lowuid(from_kuid_munged(current_user_ns(), current_uid())); in SYSCALL_DEFINE0() 210 return high2lowuid(from_kuid_munged(current_user_ns(), current_euid())); in SYSCALL_DEFINE0() 215 return high2lowgid(from_kgid_munged(current_user_ns(), current_gid())); in SYSCALL_DEFINE0() 220 return high2lowgid(from_kgid_munged(current_user_ns(), current_egid())); in SYSCALL_DEFINE0()
|
D | groups.c | 40 struct user_namespace *user_ns = current_user_ns(); in groups_to_user() 57 struct user_namespace *user_ns = current_user_ns(); in groups_from_user() 187 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
|
D | sys.c | 367 struct user_namespace *ns = current_user_ns(); in __sys_setregid() 433 struct user_namespace *ns = current_user_ns(); in __sys_setgid() 524 struct user_namespace *ns = current_user_ns(); in __sys_setreuid() 605 struct user_namespace *ns = current_user_ns(); in __sys_setuid() 662 struct user_namespace *ns = current_user_ns(); in __sys_setresuid() 759 struct user_namespace *ns = current_user_ns(); in __sys_setresgid() 971 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0() 977 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0() 983 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0() 989 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0() [all …]
|
D | ucount.c | 32 return ¤t_user_ns()->set; in set_lookup() 37 return ¤t_user_ns()->set == set; in set_is_seen()
|
/linux-6.1.9/fs/ |
D | stat.c | 302 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 303 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() 389 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat() 390 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat() 533 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64() 534 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64() 606 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx() 607 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx() 695 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat() 696 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
|
/linux-6.1.9/ipc/ |
D | util.c | 590 out->uid = from_kuid_munged(current_user_ns(), in->uid); in kernel_to_ipc64_perm() 591 out->gid = from_kgid_munged(current_user_ns(), in->gid); in kernel_to_ipc64_perm() 592 out->cuid = from_kuid_munged(current_user_ns(), in->cuid); in kernel_to_ipc64_perm() 593 out->cgid = from_kgid_munged(current_user_ns(), in->cgid); in kernel_to_ipc64_perm() 689 kuid_t uid = make_kuid(current_user_ns(), in->uid); in ipc_update_perm() 690 kgid_t gid = make_kgid(current_user_ns(), in->gid); in ipc_update_perm()
|
/linux-6.1.9/net/ax25/ |
D | ax25_uid.c | 81 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); in ax25_uid_ioctl() 94 sax25_kuid = make_kuid(current_user_ns(), sax->sax25_uid); in ax25_uid_ioctl()
|
/linux-6.1.9/fs/quota/ |
D | quota.c | 42 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 43 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 211 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 247 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() 255 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota() 306 qid = make_kqid(current_user_ns(), type, id); in quota_setquota() 635 qid = make_kqid(current_user_ns(), type, id); in quota_setxquota() 715 qid = make_kqid(current_user_ns(), type, id); in quota_getxquota() 742 qid = make_kqid(current_user_ns(), type, id); in quota_getnextxquota() 748 id_out = from_kqid(current_user_ns(), qid); in quota_getnextxquota()
|
/linux-6.1.9/fs/hfsplus/ |
D | options.c | 139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 152 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
|
/linux-6.1.9/block/ |
D | ioprio.c | 109 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3() 247 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
|
/linux-6.1.9/arch/x86/kernel/ |
D | sys_ia32.c | 136 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_stat64() 137 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_stat64()
|
/linux-6.1.9/include/linux/ |
D | cred.h | 395 #define current_user_ns() (current_cred_xxx(user_ns)) macro 397 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
|
/linux-6.1.9/arch/sparc/kernel/ |
D | sys_sparc32.c | 73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64() 74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64()
|
/linux-6.1.9/arch/s390/kernel/ |
D | compat_linux.c | 137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_stat64() 138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_stat64()
|
/linux-6.1.9/fs/9p/ |
D | v9fs.c | 219 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options() 234 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options() 334 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
|
/linux-6.1.9/fs/proc/ |
D | root.c | 171 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super() 220 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
|
/linux-6.1.9/net/core/ |
D | scm.c | 186 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send() 187 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
|
/linux-6.1.9/fs/autofs/ |
D | inode.c | 170 uid = make_kuid(current_user_ns(), option); in parse_options() 178 gid = make_kgid(current_user_ns(), option); in parse_options()
|
/linux-6.1.9/security/keys/ |
D | persistent.c | 131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
|
/linux-6.1.9/fs/vboxsf/ |
D | super.c | 76 uid = make_kuid(current_user_ns(), result.uint_32); in vboxsf_parse_param() 82 gid = make_kgid(current_user_ns(), result.uint_32); in vboxsf_parse_param()
|
/linux-6.1.9/fs/hfs/ |
D | super.c | 253 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options() 264 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options()
|
/linux-6.1.9/security/ |
D | commoncap.c | 338 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns() 428 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity() 550 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap() 1246 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
|
/linux-6.1.9/net/netfilter/ |
D | xt_owner.c | 32 (current_user_ns() != net->user_ns)) in owner_check()
|
/linux-6.1.9/include/net/ |
D | scm.h | 124 struct user_namespace *current_ns = current_user_ns(); in scm_recv()
|
/linux-6.1.9/fs/adfs/ |
D | super.c | 149 asb->s_uid = make_kuid(current_user_ns(), option); in parse_options() 156 asb->s_gid = make_kgid(current_user_ns(), option); in parse_options()
|