/linux/kernel/ |
A 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()
|
A 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() 174 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
|
A D | sys.c | 359 struct user_namespace *ns = current_user_ns(); in __sys_setregid() 425 struct user_namespace *ns = current_user_ns(); in __sys_setgid() 511 struct user_namespace *ns = current_user_ns(); in __sys_setreuid() 591 struct user_namespace *ns = current_user_ns(); in __sys_setuid() 647 struct user_namespace *ns = current_user_ns(); in __sys_setresuid() 743 struct user_namespace *ns = current_user_ns(); in __sys_setresgid() 955 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0() 961 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0() 967 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0() 973 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0() [all …]
|
A D | ucount.c | 32 return ¤t_user_ns()->set; in set_lookup() 37 return ¤t_user_ns()->set == set; in set_is_seen()
|
/linux/fs/ |
A D | stat.c | 276 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat() 277 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat() 364 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat() 365 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat() 508 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64() 509 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64() 581 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx() 582 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx() 659 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat() 660 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
|
/linux/ipc/ |
A 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/fs/quota/ |
A 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/net/ax25/ |
A 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/fs/hfsplus/ |
A D | options.c | 139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options() 150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
|
/linux/block/ |
A D | ioprio.c | 141 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3() 237 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
|
/linux/arch/x86/kernel/ |
A 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/include/linux/ |
A 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/arch/sparc/kernel/ |
A 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/arch/s390/kernel/ |
A 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/fs/9p/ |
A 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/fs/proc/ |
A 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()
|
/linux/fs/autofs/ |
A 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()
|
/linux/net/core/ |
A 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()
|
A 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()
|
/linux/security/ |
A D | commoncap.c | 337 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns() 425 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity() 545 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap() 1241 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
|
/linux/fs/hfs/ |
A 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/fs/vboxsf/ |
A 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/security/keys/ |
A D | persistent.c | 131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
|
/linux/fs/adfs/ |
A 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()
|
/linux/fs/cifs/ |
A D | fs_context.c | 955 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param() 962 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param() 969 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param() 976 gid = make_kgid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param() 983 gid = make_kgid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()
|