Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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.c45 struct user_namespace *user_ns = current_user_ns(); in groups_to_user()
62 struct user_namespace *user_ns = current_user_ns(); in groups_from_user()
179 struct user_namespace *user_ns = current_user_ns(); in may_setgroups()
Ducount.c26 return &current_user_ns()->set; in set_lookup()
31 return &current_user_ns()->set == set; in set_is_seen()
Dsys.c354 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
420 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
505 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
581 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
633 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
730 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
948 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
954 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
960 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
966 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
/kernel/linux/linux-5.10/fs/
Dstat.c248 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
249 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
335 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
336 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
479 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
480 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
552 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
553 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
632 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
633 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/kernel/linux/linux-5.10/ipc/
Dutil.c556 out->uid = from_kuid_munged(current_user_ns(), in->uid); in kernel_to_ipc64_perm()
557 out->gid = from_kgid_munged(current_user_ns(), in->gid); in kernel_to_ipc64_perm()
558 out->cuid = from_kuid_munged(current_user_ns(), in->cuid); in kernel_to_ipc64_perm()
559 out->cgid = from_kgid_munged(current_user_ns(), in->cgid); in kernel_to_ipc64_perm()
655 kuid_t uid = make_kuid(current_user_ns(), in->uid); in ipc_update_perm()
656 kgid_t gid = make_kgid(current_user_ns(), in->gid); in ipc_update_perm()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/quota/
Dquota.c39 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission()
40 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission()
208 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
244 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota()
252 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota()
303 qid = make_kqid(current_user_ns(), type, id); in quota_setquota()
631 qid = make_kqid(current_user_ns(), type, id); in quota_setxquota()
711 qid = make_kqid(current_user_ns(), type, id); in quota_getxquota()
738 qid = make_kqid(current_user_ns(), type, id); in quota_getnextxquota()
744 id_out = from_kqid(current_user_ns(), qid); in quota_getnextxquota()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/block/
Dioprio.c136 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
231 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/kernel/linux/linux-5.10/include/linux/
Dcred.h392 #define current_user_ns() (current_cred_xxx(user_ns)) macro
394 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/9p/
Dv9fs.c218 v9ses->dfltuid = make_kuid(current_user_ns(), option); in v9fs_parse_options()
233 v9ses->dfltgid = make_kgid(current_user_ns(), option); in v9fs_parse_options()
332 v9ses->uid = make_kuid(current_user_ns(), uid); in v9fs_parse_options()
/kernel/linux/linux-5.10/fs/proc/
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()
/kernel/linux/linux-5.10/net/core/
Dscm.c192 uid = make_kuid(current_user_ns(), creds.uid); in __scm_send()
193 gid = make_kgid(current_user_ns(), creds.gid); in __scm_send()
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()
/kernel/linux/linux-5.10/fs/autofs/
Dinode.c169 uid = make_kuid(current_user_ns(), option); in parse_options()
177 gid = make_kgid(current_user_ns(), option); in parse_options()
/kernel/linux/linux-5.10/security/keys/
Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/security/
Dcommoncap.c329 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns()
415 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity()
504 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1166 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/kernel/linux/linux-5.10/net/netfilter/
Dxt_owner.c32 (current_user_ns() != net->user_ns)) in owner_check()
/kernel/linux/linux-5.10/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()

1234