Symbol: current_user_ns
arch/alpha/kernel/osf_sys.c
284
tmp.st_uid = from_kuid_munged(current_user_ns(), lstat->uid);
arch/alpha/kernel/osf_sys.c
285
tmp.st_gid = from_kgid_munged(current_user_ns(), lstat->gid);
arch/arm/kernel/sys_oabi-compat.c
131
tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
arch/arm/kernel/sys_oabi-compat.c
132
tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
arch/powerpc/platforms/cell/spufs/inode.c
611
uid = make_kuid(current_user_ns(), result.uint_32);
arch/powerpc/platforms/cell/spufs/inode.c
617
gid = make_kgid(current_user_ns(), result.uint_32);
arch/s390/hypfs/inode.c
216
uid = make_kuid(current_user_ns(), result.uint_32);
arch/s390/hypfs/inode.c
222
gid = make_kgid(current_user_ns(), result.uint_32);
arch/sparc/kernel/sys_sparc32.c
73
err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid);
arch/sparc/kernel/sys_sparc32.c
74
err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid);
arch/x86/kernel/sys_ia32.c
137
SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid));
arch/x86/kernel/sys_ia32.c
138
SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid));
block/ioprio.c
106
uid = make_kuid(current_user_ns(), who);
block/ioprio.c
218
uid = make_kuid(current_user_ns(), who);
drivers/android/binder.c
5068
trd->sender_euid = from_kuid(current_user_ns(), t->sender_euid);
drivers/connector/cn_proc.c
409
if ((current_user_ns() != &init_user_ns) ||
drivers/infiniband/hw/hfi1/hfi.h
1603
u16 jkey = from_kuid(current_user_ns(), uid) & HFI1_JKEY_MASK;
drivers/net/tun.c
2315
from_kuid_munged(current_user_ns(), tun->owner)))
drivers/net/tun.c
2319
from_kgid_munged(current_user_ns(), tun->group)))
drivers/net/tun.c
2669
from_kuid_munged(current_user_ns(), tun->owner)) :
drivers/net/tun.c
2679
from_kgid_munged(current_user_ns(), tun->group)) :
drivers/net/tun.c
3169
owner = make_kuid(current_user_ns(), arg);
drivers/net/tun.c
3182
group = make_kgid(current_user_ns(), arg);
drivers/tee/tee_core.c
212
grp = make_kgid(current_user_ns(), ns_grp);
drivers/usb/gadget/function/f_fs.c
2014
data->perms.uid = make_kuid(current_user_ns(), result.uint_32);
drivers/usb/gadget/function/f_fs.c
2019
data->perms.gid = make_kgid(current_user_ns(), result.uint_32);
drivers/virt/vboxguest/vboxguest_linux.c
38
if (from_kuid(current_user_ns(), current_uid()) == 0)
fs/9p/v9fs.c
321
session_opts->uid = make_kuid(current_user_ns(), uid);
fs/autofs/dev-ioctl.c
514
from_kuid_munged(current_user_ns(), ino->uid);
fs/autofs/dev-ioctl.c
516
from_kgid_munged(current_user_ns(), ino->gid);
fs/binfmt_misc.c
187
user_ns = current_user_ns();
fs/binfmt_misc.c
937
if (WARN_ON(user_ns != current_user_ns()))
fs/coda/psdev.c
276
if (current_user_ns() != &init_user_ns)
fs/exec.c
268
bprm->user_ns = get_user_ns(current_user_ns());
fs/fcntl.c
310
struct user_namespace *user_ns = current_user_ns();
fs/fhandle.c
202
struct user_namespace *user_ns = current_user_ns();
fs/fhandle.c
343
if (!ns_capable(current_user_ns(), CAP_DAC_READ_SEARCH))
fs/file_attr.c
207
if (current_user_ns() != &init_user_ns) {
fs/fs_parser.c
331
uid = make_kuid(current_user_ns(), result->uint_32);
fs/fs_parser.c
348
gid = make_kgid(current_user_ns(), result->uint_32);
fs/gfs2/sys.c
264
qid = make_kqid(current_user_ns(), USRQUOTA, id);
fs/gfs2/sys.c
286
qid = make_kqid(current_user_ns(), GRPQUOTA, id);
fs/init.c
88
if (!ns_capable(current_user_ns(), CAP_SYS_CHROOT))
fs/inode.c
2763
ns = current_user_ns();
fs/mnt_idmapping.c
353
map_up = &current_user_ns()->uid_map;
fs/mnt_idmapping.c
356
map_up = &current_user_ns()->gid_map;
fs/namespace.c
3103
struct user_namespace *user_ns = current_user_ns();
fs/namespace.c
3225
!ns_capable(current_user_ns(), CAP_SYS_ADMIN))
fs/namespace.c
4450
!ns_capable(current_user_ns(), CAP_SYS_ADMIN))
fs/nfsd/export.c
1369
exp.ex_anon_uid= make_kuid(current_user_ns(), an_int);
fs/nfsd/export.c
1375
exp.ex_anon_gid= make_kgid(current_user_ns(), an_int);
fs/nfsd/export.c
902
exp.ex_anon_uid = make_kuid(current_user_ns(), uid);
fs/nfsd/export.c
909
exp.ex_anon_gid = make_kgid(current_user_ns(), gid);
fs/notify/fanotify/fanotify_user.c
1584
struct user_namespace *user_ns = current_user_ns();
fs/notify/inotify/inotify_user.c
681
group->inotify_data.ucounts = inc_ucount(current_user_ns(),
fs/nsfs.c
246
uid = from_kuid_munged(current_user_ns(), user_ns->owner);
fs/ntfs/super.c
135
vol->uid = make_kuid(current_user_ns(), result.uint_32);
fs/ntfs/super.c
138
vol->gid = make_kgid(current_user_ns(), result.uint_32);
fs/open.c
604
if (!ns_capable(current_user_ns(), CAP_SYS_CHROOT))
fs/open.c
750
uid = make_kuid(current_user_ns(), user);
fs/open.c
751
gid = make_kgid(current_user_ns(), group);
fs/overlayfs/copy_up.c
1152
if (!kuid_has_mapping(current_user_ns(), ctx.stat.uid) ||
fs/overlayfs/copy_up.c
1153
!kgid_has_mapping(current_user_ns(), ctx.stat.gid))
fs/overlayfs/super.c
1547
if (WARN_ON(fc->user_ns != current_user_ns()))
fs/pidfs.c
441
user_ns = current_user_ns();
fs/posix_acl.c
1281
acl = posix_acl_from_xattr(current_user_ns(), kvalue, size);
fs/posix_acl.c
917
caller_userns = current_user_ns();
fs/proc/root.c
264
ret = proc_apply_options(fs_info, fc, current_user_ns());
fs/proc/root.c
318
return proc_apply_options(fs_info, fc, current_user_ns());
fs/quota/quota.c
211
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
247
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
255
idq.dqb_id = from_kqid(current_user_ns(), qid);
fs/quota/quota.c
306
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
42
if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) ||
fs/quota/quota.c
43
(type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id))))
fs/quota/quota.c
635
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
715
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
742
qid = make_kqid(current_user_ns(), type, id);
fs/quota/quota.c
748
id_out = from_kqid(current_user_ns(), qid);
fs/smb/client/reparse.c
620
__le64 uid = cpu_to_le64(from_kuid(current_user_ns(), ctx->linux_uid));
fs/smb/client/reparse.c
621
__le64 gid = cpu_to_le64(from_kgid(current_user_ns(), ctx->linux_gid));
fs/smb/client/reparse.h
38
return make_kuid(current_user_ns(), uid);
fs/smb/client/reparse.h
48
return make_kgid(current_user_ns(), gid);
fs/stat.c
406
SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
fs/stat.c
407
SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid));
fs/stat.c
488
SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
fs/stat.c
489
SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid));
fs/stat.c
637
tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
fs/stat.c
638
tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
fs/stat.c
712
tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid);
fs/stat.c
713
tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid);
fs/stat.c
836
SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
fs/stat.c
837
SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid));
fs/udf/super.c
260
uopt->uid = make_kuid(current_user_ns(), overflowuid);
fs/udf/super.c
261
uopt->gid = make_kgid(current_user_ns(), overflowgid);
fs/udf/super.c
563
kgid_t gid = make_kgid(current_user_ns(), uv);
fs/udf/super.c
579
kuid_t uid = make_kuid(current_user_ns(), uv);
fs/xfs/xfs_healthmon.c
1187
if (current_user_ns() != &init_user_ns)
fs/xfs/xfs_ioctl.c
1132
dst->icw_uid = make_kuid(current_user_ns(), src->eof_uid);
fs/xfs/xfs_ioctl.c
1139
dst->icw_gid = make_kgid(current_user_ns(), src->eof_gid);
fs/xfs/xfs_quotaops.c
259
*qid = make_kqid(current_user_ns(), qid->type, id);
fs/zonefs/super.c
1148
sbi->s_uid = make_kuid(current_user_ns(),
fs/zonefs/super.c
1157
sbi->s_gid = make_kgid(current_user_ns(),
include/linux/nsfs.h
35
struct user_namespace *: current_user_ns(), \
io_uring/register.c
216
!ns_capable_noaudit(current_user_ns(), CAP_SYS_ADMIN))
io_uring/register.c
252
!ns_capable_noaudit(current_user_ns(), CAP_SYS_ADMIN))
ipc/mqueue.c
1365
info->notify_user_ns = get_user_ns(current_user_ns());
ipc/util.c
590
out->uid = from_kuid_munged(current_user_ns(), in->uid);
ipc/util.c
591
out->gid = from_kgid_munged(current_user_ns(), in->gid);
ipc/util.c
592
out->cuid = from_kuid_munged(current_user_ns(), in->cuid);
ipc/util.c
593
out->cgid = from_kgid_munged(current_user_ns(), in->cgid);
ipc/util.c
686
kuid_t uid = make_kuid(current_user_ns(), in->uid);
ipc/util.c
687
kgid_t gid = make_kgid(current_user_ns(), in->gid);
kernel/audit.c
1087
if (current_user_ns() != &init_user_ns)
kernel/auditfilter.c
496
f->uid = make_kuid(current_user_ns(), f_val);
kernel/auditfilter.c
505
f->gid = make_kgid(current_user_ns(), f_val);
kernel/bpf/inode.c
1021
uid = make_kuid(current_user_ns(), result.uint_32);
kernel/bpf/inode.c
1035
gid = make_kgid(current_user_ns(), result.uint_32);
kernel/bpf/syscall.c
5181
info.created_by_uid = from_kuid_munged(current_user_ns(),
kernel/bpf/token.c
144
if (current_user_ns() != userns)
kernel/bpf/token.c
150
if (current_user_ns() == &init_user_ns)
kernel/capability.c
476
struct user_namespace *ns = current_user_ns();
kernel/exit.c
1211
uid_t uid = from_kuid_munged(current_user_ns(), task_uid(p));
kernel/exit.c
1394
uid = from_kuid_munged(current_user_ns(), task_uid(p));
kernel/exit.c
1455
uid = from_kuid_munged(current_user_ns(), task_uid(p));
kernel/fork.c
2092
!ns_capable(current_user_ns(), CAP_SYS_ADMIN))
kernel/groups.c
187
struct user_namespace *user_ns = current_user_ns();
kernel/groups.c
40
struct user_namespace *user_ns = current_user_ns();
kernel/groups.c
57
struct user_namespace *user_ns = current_user_ns();
kernel/nsproxy.c
221
user_ns = new_cred ? new_cred->user_ns : current_user_ns();
kernel/nsproxy.c
292
new = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs);
kernel/nsproxy.c
358
nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs);
kernel/nstree.c
562
ns = to_ns_common(current_user_ns());
kernel/seccomp.c
692
!ns_capable_noaudit(current_user_ns(), CAP_SYS_ADMIN))
kernel/signal.c
1199
if (current_user_ns() != t_user_ns) {
kernel/signal.c
1200
kuid_t uid = make_kuid(current_user_ns(), info->si_uid);
kernel/signal.c
2519
info.si_uid = from_kuid_munged(current_user_ns(), current_uid());
kernel/signal.c
2773
info->si_uid = from_kuid_munged(current_user_ns(),
kernel/signal.c
3951
info->si_uid = from_kuid_munged(current_user_ns(), current_uid());
kernel/sys.c
1030
return from_kuid_munged(current_user_ns(), current_uid());
kernel/sys.c
1036
return from_kuid_munged(current_user_ns(), current_euid());
kernel/sys.c
1042
return from_kgid_munged(current_user_ns(), current_gid());
kernel/sys.c
1048
return from_kgid_munged(current_user_ns(), current_egid());
kernel/sys.c
2112
if (!checkpoint_restore_ns_capable(current_user_ns()))
kernel/sys.c
415
struct user_namespace *ns = current_user_ns();
kernel/sys.c
481
struct user_namespace *ns = current_user_ns();
kernel/sys.c
572
struct user_namespace *ns = current_user_ns();
kernel/sys.c
653
struct user_namespace *ns = current_user_ns();
kernel/sys.c
710
struct user_namespace *ns = current_user_ns();
kernel/sys.c
812
struct user_namespace *ns = current_user_ns();
kernel/taskstats.c
208
fill_stats(current_user_ns(), task_active_pid_ns(current), tsk, stats);
kernel/taskstats.c
309
if (current_user_ns() != &init_user_ns)
kernel/ucount.c
34
return &current_user_ns()->set;
kernel/ucount.c
39
return &current_user_ns()->set == set;
kernel/uid16.c
117
struct user_namespace *user_ns = current_user_ns();
kernel/uid16.c
135
struct user_namespace *user_ns = current_user_ns();
kernel/uid16.c
205
return high2lowuid(from_kuid_munged(current_user_ns(), current_uid()));
kernel/uid16.c
210
return high2lowuid(from_kuid_munged(current_user_ns(), current_euid()));
kernel/uid16.c
215
return high2lowgid(from_kgid_munged(current_user_ns(), current_gid()));
kernel/uid16.c
220
return high2lowgid(from_kgid_munged(current_user_ns(), current_egid()));
kernel/user_namespace.c
1323
return in_userns(target_ns, current_user_ns());
kernel/user_namespace.c
1351
if (user_ns == current_user_ns())
kernel/user_namespace.c
1379
struct user_namespace *my_user_ns = current_user_ns();
kernel/user_namespace.c
69
(current_user_ns() != &init_user_ns))
net/core/fib_rules.c
224
out.start = make_kuid(current_user_ns(), in->start);
net/core/fib_rules.c
225
out.end = make_kuid(current_user_ns(), in->end);
net/core/fib_rules.c
233
from_kuid_munged(current_user_ns(), range->start),
net/core/fib_rules.c
234
from_kuid_munged(current_user_ns(), range->end)
net/core/fib_rules.c
675
if (current_user_ns() != net->user_ns) {
net/core/scm.c
228
uid = make_kuid(current_user_ns(), creds.uid);
net/core/scm.c
229
gid = make_kgid(current_user_ns(), creds.gid);
net/core/scm.c
514
struct user_namespace *current_ns = current_user_ns();
net/core/sock.c
1710
struct user_namespace *current_ns = current_user_ns();
net/core/sock.c
1719
struct user_namespace *user_ns = current_user_ns();
net/ipv4/route.c
3042
from_kuid_munged(current_user_ns(),
net/ipv4/route.c
3317
uid = make_kuid(current_user_ns(), nla_get_u32(tb[RTA_UID]));
net/ipv4/sysctl_net_ipv4.c
170
struct user_namespace *user_ns = current_user_ns();
net/ipv6/route.c
6260
fl6.flowi6_uid = make_kuid(current_user_ns(),
net/netfilter/xt_owner.c
32
(current_user_ns() != net->user_ns))
net/sunrpc/auth_gss/auth_gss.c
755
uid = make_kuid(current_user_ns(), id);
net/sunrpc/auth_gss/svcauth_gss.c
513
rsci.cred.cr_uid = make_kuid(current_user_ns(), id);
net/sunrpc/auth_gss/svcauth_gss.c
518
rsci.cred.cr_gid = make_kgid(current_user_ns(), id);
net/sunrpc/auth_gss/svcauth_gss.c
536
kgid = make_kgid(current_user_ns(), id);
net/sunrpc/svcauth_unix.c
510
uid = make_kuid(current_user_ns(), id);
net/sunrpc/svcauth_unix.c
532
kgid = make_kgid(current_user_ns(), gid);
net/sunrpc/svcauth_unix.c
720
uid = make_kuid(current_user_ns(),
net/sunrpc/svcauth_unix.c
754
kgid = make_kgid(current_user_ns(),
rust/helpers/task.c
55
return current_user_ns();
security/commoncap.c
1274
if (!ns_capable(current_user_ns(), CAP_SETPCAP))
security/commoncap.c
387
return kuid_root_in_ns(kuid, current_user_ns());
security/commoncap.c
467
mappedroot = from_kuid(current_user_ns(), vfsuid_into_kuid(vfsroot));
security/commoncap.c
577
struct user_namespace *task_ns = current_user_ns(),
security/integrity/ima/ima_policy.c
1703
entry->uid = make_kuid(current_user_ns(),
security/integrity/ima/ima_policy.c
1738
entry->gid = make_kgid(current_user_ns(),
security/integrity/ima/ima_policy.c
1765
entry->fowner = make_kuid(current_user_ns(),
security/integrity/ima/ima_policy.c
1791
entry->fgroup = make_kgid(current_user_ns(),
security/keys/keyctl.c
683
from_kuid_munged(current_user_ns(), key->uid),
security/keys/keyctl.c
684
from_kgid_munged(current_user_ns(), key->gid),
security/keys/keyctl.c
959
uid = make_kuid(current_user_ns(), user);
security/keys/keyctl.c
960
gid = make_kgid(current_user_ns(), group);
security/keys/keyring.c
109
struct user_namespace *ns = current_user_ns();
security/keys/keyring.c
1149
struct user_namespace *ns = current_user_ns();
security/keys/persistent.c
131
struct user_namespace *ns = current_user_ns();
security/keys/process_keys.c
78
struct user_namespace *user_ns = current_user_ns();
security/landlock/syscalls.c
543
!ns_capable_noaudit(current_user_ns(), CAP_SYS_ADMIN))
security/yama/yama_lsm.c
402
if (!has_ns_capability(parent, current_user_ns(), CAP_SYS_PTRACE))