Home
last modified time | relevance | path

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

12345

/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()
174 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
A Dsys.c359 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
425 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
511 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
591 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
647 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
743 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
955 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
961 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
967 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
973 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.c276 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
277 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
364 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
365 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
508 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
509 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
581 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
582 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
659 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
660 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/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/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/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/hfsplus/
A Doptions.c139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); in hfsplus_parse_options()
150 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp); in hfsplus_parse_options()
/linux/block/
A Dioprio.c141 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
237 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/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/include/linux/
A Dcred.h395 #define current_user_ns() (current_cred_xxx(user_ns)) macro
397 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/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.c219 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options()
234 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options()
334 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
/linux/fs/proc/
A Droot.c174 proc_apply_options(fs_info, fc, current_user_ns()); in proc_fill_super()
223 proc_apply_options(fs_info, fc, current_user_ns()); in proc_reconfigure()
/linux/fs/autofs/
A Dinode.c169 uid = make_kuid(current_user_ns(), option); in parse_options()
177 gid = make_kgid(current_user_ns(), option); in parse_options()
/linux/net/core/
A Dscm.c186 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
187 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
A Dfib_rules.c223 out.start = make_kuid(current_user_ns(), in->start); in nla_get_kuid_range()
224 out.end = make_kuid(current_user_ns(), in->end); in nla_get_kuid_range()
232 from_kuid_munged(current_user_ns(), range->start), in nla_put_uid_range()
233 from_kuid_munged(current_user_ns(), range->end) in nla_put_uid_range()
638 if (current_user_ns() != net->user_ns) { in fib_nl2rule()
/linux/security/
A Dcommoncap.c337 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns()
425 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity()
545 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1241 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/linux/fs/hfs/
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/vboxsf/
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/security/keys/
A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux/fs/adfs/
A 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/fs/cifs/
A Dfs_context.c955 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()
962 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()
969 uid = make_kuid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()
976 gid = make_kgid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()
983 gid = make_kgid(current_user_ns(), result.uint_32); in smb3_fs_context_parse_param()

Completed in 42 milliseconds

12345