Home
last modified time | relevance | path

Searched refs:current_user_ns (Results 1 – 25 of 74) 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.c214 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
257 new = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); in exit_task_namespaces()
325 nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs); in put_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_egi in SYSCALL_DEFINE0()
[all...]
/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()
H A Dfhandle.c198 struct user_namespace *user_ns = current_user_ns(); in vfs_dentry_acceptable()
327 if (!ns_capable(current_user_ns(), CAP_DAC_READ_SEARCH)) in may_decode_fh()
/linux/fs/smb/client/
H A Dreparse.h37 return make_kuid(current_user_ns(), uid); in wsl_make_kuid()
47 return make_kgid(current_user_ns(), gid); in wsl_make_kgid()
/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/include/linux/
H A Dcred.h371 #define current_user_ns() (current_cred_xxx(user_ns)) macro
373 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/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/kernel/bpf/
H A Dtoken.c144 if (current_user_ns() != userns) in bpf_token_create()
150 if (current_user_ns() == &init_user_ns) in bpf_token_create()
/linux/arch/s390/kernel/
H A Dcompat_linux.c137 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/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/9p/
H A Dv9fs.c221 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options()
236 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options()
336 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
/linux/net/core/
H A Dscm.c228 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
229 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
514 struct user_namespace *current_ns = current_user_ns(); in __scm_recv_common()
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/proc/
H A Droot.c171 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/security/keys/
H A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux/security/
H A Dcommoncap.c370 for (ns = current_user_ns();; ns = ns->parent) { in rootid_owns_currentns()
457 mappedroot = from_kuid(current_user_ns(), vfsuid_into_kuid(vfsroot)); in cap_inode_getsecurity()
567 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1264 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/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/netfilter/
H A Dxt_owner.c32 (current_user_ns() != net->user_ns)) in owner_check()

123