Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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()
Dsys.c367 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
433 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
524 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
605 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
662 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
759 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
971 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
977 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
983 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
989 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.1.9/fs/
Dstat.c302 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
303 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
389 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
390 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
533 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
534 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
606 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
607 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
695 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
696 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/block/
Dioprio.c109 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
247 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/linux-6.1.9/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.1.9/include/linux/
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-6.1.9/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.1.9/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.1.9/fs/9p/
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-6.1.9/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.1.9/net/core/
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()
/linux-6.1.9/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.1.9/security/keys/
Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux-6.1.9/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.1.9/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.1.9/security/
Dcommoncap.c338 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns()
428 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity()
550 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1246 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()
/linux-6.1.9/net/netfilter/
Dxt_owner.c32 (current_user_ns() != net->user_ns)) in owner_check()
/linux-6.1.9/include/net/
Dscm.h124 struct user_namespace *current_ns = current_user_ns(); in scm_recv()
/linux-6.1.9/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()

12345