Home
last modified time | relevance | path

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

1234

/linux/kernel/
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()
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()
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()
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 …]
A Ducount.c32 return &current_user_ns()->set; in set_lookup()
37 return &current_user_ns()->set == set; in set_is_seen()
/linux/fs/
A Dstat.c376 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
377 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
457 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
458 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
606 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
607 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
681 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
682 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
820 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
821 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
A Dfhandle.c167 struct user_namespace *user_ns = current_user_ns(); in vfs_dentry_acceptable()
277 if (!ns_capable(current_user_ns(), CAP_DAC_READ_SEARCH)) in may_decode_fh()
A Dfs_parser.c319 uid = make_kuid(current_user_ns(), result->uint_32); in fs_param_is_uid()
336 gid = make_kgid(current_user_ns(), result->uint_32); in fs_param_is_gid()
/linux/fs/smb/client/
A Dreparse.h35 return make_kuid(current_user_ns(), uid); in wsl_make_kuid()
45 return make_kgid(current_user_ns(), gid); in wsl_make_kgid()
/linux/ipc/
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/
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/
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/
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/
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/
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/
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/
A Dtoken.c145 if (current_user_ns() != userns) in bpf_token_create()
151 if (current_user_ns() == &init_user_ns) in bpf_token_create()
/linux/arch/sparc/kernel/
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/arch/s390/kernel/
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/fs/9p/
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/
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/
A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux/fs/hfs/
A Dsuper.c254 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp); in parse_options()
265 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp); in parse_options()
/linux/net/core/
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()
/linux/security/
A Dcommoncap.c341 for (ns = current_user_ns();; ns = ns->parent) { in rootid_owns_currentns()
428 mappedroot = from_kuid(current_user_ns(), vfsuid_into_kuid(vfsroot)); in cap_inode_getsecurity()
538 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1239 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()

Completed in 48 milliseconds

1234