Home
last modified time | relevance | path

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

1234

/Linux-v5.4/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()
Dnsproxy.c198 user_ns = new_cred ? new_cred->user_ns : current_user_ns(); in unshare_nsproxy_namespaces()
250 new_nsproxy = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); in SYSCALL_DEFINE2()
Dsys.c352 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
414 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
495 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
571 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
623 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
715 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
922 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
928 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
934 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
940 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
Dutsname.c148 !ns_capable(current_user_ns(), CAP_SYS_ADMIN)) in utsns_install()
/Linux-v5.4/fs/
Dstat.c232 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
233 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
320 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
321 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
464 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
465 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
537 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
538 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
608 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
609 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
/Linux-v5.4/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()
/Linux-v5.4/fs/quota/
Dquota.c38 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) || in check_quotactl_permission()
39 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id)))) in check_quotactl_permission()
209 qid = make_kqid(current_user_ns(), type, id); in quota_getquota()
235 qid = make_kqid(current_user_ns(), type, id); in quota_getnextquota()
243 idq.dqb_id = from_kqid(current_user_ns(), qid); in quota_getnextquota()
286 qid = make_kqid(current_user_ns(), type, id); in quota_setquota()
571 qid = make_kqid(current_user_ns(), type, id); in quota_setxquota()
632 qid = make_kqid(current_user_ns(), type, id); in quota_getxquota()
659 qid = make_kqid(current_user_ns(), type, id); in quota_getnextxquota()
665 id_out = from_kqid(current_user_ns(), qid); in quota_getnextxquota()
/Linux-v5.4/fs/xfs/
Dxfs_icache.h105 dst->eof_uid = make_kuid(current_user_ns(), src->eof_uid); in xfs_fs_eofblocks_from_user()
112 dst->eof_gid = make_kgid(current_user_ns(), src->eof_gid); in xfs_fs_eofblocks_from_user()
/Linux-v5.4/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-v5.4/block/
Dioprio.c129 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
221 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/Linux-v5.4/fs/hfsplus/
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-v5.4/arch/x86/ia32/
Dsys_ia32.c76 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_stat64()
77 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_stat64()
/Linux-v5.4/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
/Linux-v5.4/fs/proc/
Droot.c104 proc_apply_options(s, fc, pid_ns, current_user_ns()); in proc_fill_super()
152 proc_apply_options(sb, fc, pid, current_user_ns()); in proc_reconfigure()
/Linux-v5.4/arch/sparc/kernel/
Dsys_sparc32.c74 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid); in cp_compat_stat64()
75 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid); in cp_compat_stat64()
/Linux-v5.4/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-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/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-v5.4/kernel/cgroup/
Dnamespace.c102 if (!ns_capable(current_user_ns(), CAP_SYS_ADMIN) || in cgroupns_install()
/Linux-v5.4/security/keys/
Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/Linux-v5.4/fs/hfs/
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-v5.4/security/
Dcommoncap.c329 for (ns = current_user_ns(); ; ns = ns->parent) { in rootid_owns_currentns()
417 mappedroot = from_kuid(current_user_ns(), kroot); in cap_inode_getsecurity()
483 struct user_namespace *task_ns = current_user_ns(), in cap_convert_nscap()
1143 if (!ns_capable(current_user_ns(), CAP_SETPCAP)) in cap_prctl_drop()

1234