Home
last modified time | relevance | path

Searched refs:current_user_ns (Results 1 – 25 of 65) sorted by relevance

123

/linux/kernel/
H A Duid16.c117 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()
H A Dgroups.c40 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()
H A Dnsproxy.c222 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
284 new = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); in exec_task_namespaces()
352 nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs); in prepare_nsset()
H A Ducount.c34 return &current_user_ns()->set; in set_lookup()
39 return &current_user_ns()->set == set; in set_is_seen()
H A Dsys.c415 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
481 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
572 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
653 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
710 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
812 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
1030 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
1036 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
1042 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
1048 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
H A Duser_namespace.c69 (current_user_ns() != &init_user_ns)) in enforced_nproc_rlimit()
1324 return in_userns(target_ns, current_user_ns()); in current_in_userns()
1352 if (user_ns == current_user_ns()) in userns_install()
1380 struct user_namespace *my_user_ns = current_user_ns(); in ns_get_owner()
H A Dtaskstats.c208 fill_stats(current_user_ns(), task_active_pid_ns(current), tsk, stats); in fill_stats_for_pid()
305 if (current_user_ns() != &init_user_ns) in add_del_listener()
/linux/fs/
H A Dstat.c410 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
411 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
492 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
493 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
645 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
646 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
720 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
721 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
848 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
849 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/linux/fs/quota/
H A Dquota.c42 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/
H A Dax25_uid.c81 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/block/
H A Dioprio.c106 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
218 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/linux/rust/helpers/
H A Dtask.c55 return current_user_ns(); in rust_helper_current_user_ns()
/linux/arch/x86/kernel/
H A Dsys_ia32.c136 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/
H A Dcred.h393 #define current_user_ns() (current_cred_xxx(user_ns)) macro
395 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
H A Dnsfs.h35 struct user_namespace *: current_user_ns(), \
/linux/arch/sparc/kernel/
H A Dsys_sparc32.c73 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/fs/proc/
H A Droot.c257 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super()
306 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
/linux/arch/s390/hypfs/
H A Dinode.c216 uid = make_kuid(current_user_ns(), result.uint_32); in hypfs_parse_param()
222 gid = make_kgid(current_user_ns(), result.uint_32); in hypfs_parse_param()
/linux/security/keys/
H A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
H A Dkeyctl.c683 from_kuid_munged(current_user_ns(), key->uid), in keyctl_describe_key()
684 from_kgid_munged(current_user_ns(), key->gid), in keyctl_describe_key()
959 uid = make_kuid(current_user_ns(), user); in keyctl_chown_key()
960 gid = make_kgid(current_user_ns(), group); in keyctl_chown_key()
/linux/security/
H A Dcommoncap.c387 return kuid_root_in_ns(kuid, current_user_ns()); in vfsuid_root_in_currentns()
467 mappedroot = from_kuid(current_user_ns(), vfsuid_into_kuid(vfsroot)); in cap_inode_getsecurity()
577 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1274 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/linux/net/netfilter/
H A Dxt_owner.c32 (current_user_ns() != net->user_ns)) in owner_check()
/linux/arch/arm/kernel/
H A Dsys_oabi-compat.c131 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_oldabi_stat64()
132 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_oldabi_stat64()
/linux/net/core/
H A Dfib_rules.c224 out.start = make_kuid(current_user_ns(), in->start); in nla_get_kuid_range()
225 out.end = make_kuid(current_user_ns(), in->end); in nla_get_kuid_range()
233 from_kuid_munged(current_user_ns(), range->start), in nla_put_uid_range()
234 from_kuid_munged(current_user_ns(), range->end) in nla_put_uid_range()
671 if (current_user_ns() != net->user_ns) { in fib_nl2rule()
/linux/fs/autofs/
H A Ddev-ioctl.c514 from_kuid_munged(current_user_ns(), ino->uid); in autofs_dev_ioctl_requester()
516 from_kgid_munged(current_user_ns(), ino->gid); in autofs_dev_ioctl_requester()

123