Home
last modified time | relevance | path

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

12345

/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.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()
H A Dsys.c383 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
449 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
540 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
621 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
678 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
780 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
998 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
1004 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
1010 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
1016 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
H A Ducount.c32 return &current_user_ns()->set; in set_lookup()
37 return &current_user_ns()->set == set; in set_is_seen()
/linux/fs/
H A Dstat.c339 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
340 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
420 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
421 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
564 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
565 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
639 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
640 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
734 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
735 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/linux/fs/smb/client/
H A Dreparse.h36 return make_kuid(current_user_ns(), uid); in wsl_make_kuid()
46 return make_kgid(current_user_ns(), gid); in wsl_make_kgid()
/linux/ipc/
H A 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/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/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/block/
H A Dioprio.c110 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
222 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/linux/fs/hfsplus/
H A 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/include/linux/
H A Dcred.h386 #define current_user_ns() (current_cred_xxx(user_ns)) macro
388 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/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.c150 if (current_user_ns() != userns) { in bpf_token_create()
160 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/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/fs/efivarfs/
H A Dsuper.c296 opts->uid = make_kuid(current_user_ns(), result.uint_32); in efivarfs_parse_param()
301 opts->gid = make_kgid(current_user_ns(), result.uint_32); in efivarfs_parse_param()
/linux/security/keys/
H A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux/fs/hfs/
H A 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/fs/autofs/
H A Dinode.c208 uid = make_kuid(current_user_ns(), result.uint_32); in autofs_parse_param()
214 gid = make_kgid(current_user_ns(), result.uint_32); in autofs_parse_param()
/linux/fs/vboxsf/
H A 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/net/core/
H A Dscm.c204 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
205 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()

12345