/kernel/linux/linux-5.10/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 | 45 struct user_namespace *user_ns = current_user_ns(); in groups_to_user() 62 struct user_namespace *user_ns = current_user_ns(); in groups_from_user() 179 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
|
D | ucount.c | 26 return ¤t_user_ns()->set; in set_lookup() 31 return ¤t_user_ns()->set == set; in set_is_seen()
|
D | sys.c | 354 struct user_namespace *ns = current_user_ns(); in __sys_setregid() 420 struct user_namespace *ns = current_user_ns(); in __sys_setgid() 505 struct user_namespace *ns = current_user_ns(); in __sys_setreuid() 581 struct user_namespace *ns = current_user_ns(); in __sys_setuid() 633 struct user_namespace *ns = current_user_ns(); in __sys_setresuid() 730 struct user_namespace *ns = current_user_ns(); in __sys_setresgid() 948 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0() 954 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0() 960 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0() 966 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0() [all …]
|
/kernel/linux/linux-5.10/fs/ |
D | stat.c | 248 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 249 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() 335 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat() 336 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat() 479 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64() 480 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64() 552 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx() 553 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx() 632 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat() 633 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
|
/kernel/linux/linux-5.10/ipc/ |
D | util.c | 556 out->uid = from_kuid_munged(current_user_ns(), in->uid); in kernel_to_ipc64_perm() 557 out->gid = from_kgid_munged(current_user_ns(), in->gid); in kernel_to_ipc64_perm() 558 out->cuid = from_kuid_munged(current_user_ns(), in->cuid); in kernel_to_ipc64_perm() 559 out->cgid = from_kgid_munged(current_user_ns(), in->cgid); in kernel_to_ipc64_perm() 655 kuid_t uid = make_kuid(current_user_ns(), in->uid); in ipc_update_perm() 656 kgid_t gid = make_kgid(current_user_ns(), in->gid); in ipc_update_perm()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/quota/ |
D | quota.c | 39 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission() 40 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission() 208 qid = make_kqid(current_user_ns(), type, id); in quota_getquota() 244 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota() 252 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota() 303 qid = make_kqid(current_user_ns(), type, id); in quota_setquota() 631 qid = make_kqid(current_user_ns(), type, id); in quota_setxquota() 711 qid = make_kqid(current_user_ns(), type, id); in quota_getxquota() 738 qid = make_kqid(current_user_ns(), type, id); in quota_getnextxquota() 744 id_out = from_kqid(current_user_ns(), qid); in quota_getnextxquota()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/block/ |
D | ioprio.c | 136 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3() 231 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
|
/kernel/linux/linux-5.10/include/linux/ |
D | cred.h | 392 #define current_user_ns() (current_cred_xxx(user_ns)) macro 394 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/fs/9p/ |
D | v9fs.c | 218 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options() 233 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options() 332 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
|
/kernel/linux/linux-5.10/fs/proc/ |
D | root.c | 174 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super() 223 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
|
/kernel/linux/linux-5.10/net/core/ |
D | scm.c | 192 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send() 193 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
|
D | fib_rules.c | 223 out.start = make_kuid(current_user_ns(), in->start); in nla_get_kuid_range() 224 out.end = make_kuid(current_user_ns(), in->end); in nla_get_kuid_range() 232 from_kuid_munged(current_user_ns(), range->start), in nla_put_uid_range() 233 from_kuid_munged(current_user_ns(), range->end) in nla_put_uid_range() 638 if (current_user_ns() != net->user_ns) { in fib_nl2rule()
|
/kernel/linux/linux-5.10/fs/autofs/ |
D | inode.c | 169 uid = make_kuid(current_user_ns(), option); in parse_options() 177 gid = make_kgid(current_user_ns(), option); in parse_options()
|
/kernel/linux/linux-5.10/security/keys/ |
D | persistent.c | 131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/security/ |
D | commoncap.c | 329 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns() 415 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity() 504 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap() 1166 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | xt_owner.c | 32 (current_user_ns() != net->user_ns)) in owner_check()
|
/kernel/linux/linux-5.10/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()
|