Home
last modified time | relevance | path

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

1234

/linux-6.15/kernel/
H 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()
H 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()
H 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()
H A Dsys.c385 struct user_namespace *ns = current_user_ns(); in __sys_setregid()
451 struct user_namespace *ns = current_user_ns(); in __sys_setgid()
542 struct user_namespace *ns = current_user_ns(); in __sys_setreuid()
623 struct user_namespace *ns = current_user_ns(); in __sys_setuid()
680 struct user_namespace *ns = current_user_ns(); in __sys_setresuid()
782 struct user_namespace *ns = current_user_ns(); in __sys_setresgid()
1000 return from_kuid_munged(current_user_ns(), current_uid()); in SYSCALL_DEFINE0()
1006 return from_kuid_munged(current_user_ns(), current_euid()); in SYSCALL_DEFINE0()
1012 return from_kgid_munged(current_user_ns(), current_gid()); in SYSCALL_DEFINE0()
1018 return from_kgid_munged(current_user_ns(), current_egid()); in SYSCALL_DEFINE0()
[all …]
H A Ducount.c34 return &current_user_ns()->set; in set_lookup()
39 return &current_user_ns()->set == set; in set_is_seen()
/linux-6.15/fs/
H A Dstat.c407 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_old_stat()
408 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_old_stat()
488 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_new_stat()
489 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_new_stat()
637 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_new_stat64()
638 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_new_stat64()
712 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid); in cp_statx()
713 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid); in cp_statx()
839 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); in cp_compat_stat()
840 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid)); in cp_compat_stat()
H A Dmnt_idmapping.c353 map_up = &current_user_ns()->uid_map; in statmount_mnt_idmap()
356 map_up = &current_user_ns()->gid_map; in statmount_mnt_idmap()
H A Dfhandle.c193 struct user_namespace *user_ns = current_user_ns(); in vfs_dentry_acceptable()
314 if (!ns_capable(current_user_ns(), CAP_DAC_READ_SEARCH)) in may_decode_fh()
H A Dfs_parser.c341 uid = make_kuid(current_user_ns(), result->uint_32); in fs_param_is_uid()
358 gid = make_kgid(current_user_ns(), result->uint_32); in fs_param_is_gid()
/linux-6.15/ipc/
H 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()
686 kuid_t uid = make_kuid(current_user_ns(), in->uid); in ipc_update_perm()
687 kgid_t gid = make_kgid(current_user_ns(), in->gid); in ipc_update_perm()
/linux-6.15/fs/smb/client/
H A Dreparse.h37 return make_kuid(current_user_ns(), uid); in wsl_make_kuid()
47 return make_kgid(current_user_ns(), gid); in wsl_make_kgid()
/linux-6.15/net/ax25/
H 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-6.15/fs/quota/
H 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-6.15/block/
H A Dioprio.c106 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE3()
218 uid = make_kuid(current_user_ns(), who); in SYSCALL_DEFINE2()
/linux-6.15/rust/helpers/
H A Dtask.c49 return current_user_ns(); in rust_helper_current_user_ns()
/linux-6.15/include/linux/
H A Dcred.h369 #define current_user_ns() (current_cred_xxx(user_ns)) macro
371 static inline struct user_namespace *current_user_ns(void) in current_user_ns() function
/linux-6.15/kernel/bpf/
H A Dtoken.c144 if (current_user_ns() != userns) in bpf_token_create()
150 if (current_user_ns() == &init_user_ns) in bpf_token_create()
/linux-6.15/arch/x86/kernel/
H 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-6.15/arch/sparc/kernel/
H 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-6.15/arch/s390/kernel/
H 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-6.15/fs/9p/
H 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-6.15/fs/proc/
H 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-6.15/security/keys/
H A Dpersistent.c131 struct user_namespace *ns = current_user_ns(); in keyctl_get_persistent()
/linux-6.15/net/core/
H 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-6.15/arch/s390/hypfs/
H A Dinode.c233 uid = make_kuid(current_user_ns(), result.uint_32); in hypfs_parse_param()
239 gid = make_kgid(current_user_ns(), result.uint_32); in hypfs_parse_param()

1234