Home
last modified time | relevance | path

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

12345

/linux-6.6.21/kernel/
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()
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()
Dnsproxy.c224 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
267 new = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); in exec_task_namespaces()
335 nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs); in prepare_nsset()
Dsys.c374 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
440 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
531 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
612 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
669 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
771 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
989 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
995 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
1001 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
1007 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
Ducount.c32 return &current_user_ns()->set; in set_lookup()
37 return &current_user_ns()->set == set; in set_is_seen()
/linux-6.6.21/fs/
Dstat.c334 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
335 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
415 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
416 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
559 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
560 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
634 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
635 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
728 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
729 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/linux-6.6.21/ipc/
Dutil.c590 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.6.21/net/ax25/
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-6.6.21/fs/quota/
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-6.6.21/block/
Dioprio.c110 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
248 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/linux-6.6.21/fs/hfsplus/
Doptions.c139 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.6.21/include/linux/
Dcred.h344 #define current_user_ns() (current_cred_xxx(user_ns)) macro
346 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/linux-6.6.21/arch/x86/kernel/
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-6.6.21/arch/sparc/kernel/
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-6.6.21/arch/s390/kernel/
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-6.6.21/fs/9p/
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-6.6.21/fs/proc/
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-6.6.21/net/core/
Dscm.c193 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
194 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
/linux-6.6.21/fs/autofs/
Dinode.c170 uid = make_kuid(current_user_ns(), option); in parse_options()
178 gid = make_kgid(current_user_ns(), option); in parse_options()
/linux-6.6.21/security/keys/
Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux-6.6.21/fs/vboxsf/
Dsuper.c76 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.6.21/fs/hfs/
Dsuper.c253 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.6.21/security/
Dcommoncap.c340 for (ns = current_user_ns();; ns = ns->parent) { in rootid_owns_currentns()
427 mappedroot = from_kuid(current_user_ns(), vfsuid_into_kuid(vfsroot)); in cap_inode_getsecurity()
537 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1238 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/linux-6.6.21/fs/adfs/
Dsuper.c149 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-6.6.21/arch/s390/hypfs/
Dinode.c232 uid = make_kuid(current_user_ns(), result.uint_32); in hypfs_parse_param()
238 gid = make_kgid(current_user_ns(), result.uint_32); in hypfs_parse_param()

12345