Searched refs:current_user_ns (Results 1 - 25 of 107) sorted by relevance

12345

/linux-master/kernel/
H A Duid16.c117 struct user_namespace *user_ns = current_user_ns();
135 struct user_namespace *user_ns = current_user_ns();
205 return high2lowuid(from_kuid_munged(current_user_ns(), current_uid()));
210 return high2lowuid(from_kuid_munged(current_user_ns(), current_euid()));
215 return high2lowgid(from_kgid_munged(current_user_ns(), current_gid()));
220 return high2lowgid(from_kgid_munged(current_user_ns(), current_egid()));
H A Dgroups.c40 struct user_namespace *user_ns = current_user_ns();
57 struct user_namespace *user_ns = current_user_ns();
187 struct user_namespace *user_ns = current_user_ns();
H A Dnsproxy.c224 user_ns = new_cred ? new_cred->user_ns : current_user_ns();
267 new = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs);
335 nsset->nsproxy = create_new_namespaces(0, me, current_user_ns(), me->fs);
H A Ducount.c32 return &current_user_ns()->set;
37 return &current_user_ns()->set == set;
/linux-master/fs/smb/client/
H A Dreparse.h36 return make_kuid(current_user_ns(), uid);
46 return make_kgid(current_user_ns(), gid);
/linux-master/net/ax25/
H A Dax25_uid.c81 res = from_kuid_munged(current_user_ns(), ax25_uid->uid);
94 sax25_kuid = make_kuid(current_user_ns(), sax->sax25_uid);
/linux-master/block/
H A Dioprio.c110 uid = make_kuid(current_user_ns(), who);
222 uid = make_kuid(current_user_ns(), who);
/linux-master/fs/
H A Dstat.c339 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
340 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid));
420 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
421 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), stat->gid));
564 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
565 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
639 tmp.stx_uid = from_kuid_munged(current_user_ns(), stat->uid);
640 tmp.stx_gid = from_kgid_munged(current_user_ns(), stat->gid);
733 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid));
734 SET_GID(tmp.st_gid, from_kgid_munged(current_user_ns(), sta
[all...]
/linux-master/ipc/
H A Dutil.c590 out->uid = from_kuid_munged(current_user_ns(), in->uid);
591 out->gid = from_kgid_munged(current_user_ns(), in->gid);
592 out->cuid = from_kuid_munged(current_user_ns(), in->cuid);
593 out->cgid = from_kgid_munged(current_user_ns(), in->cgid);
689 kuid_t uid = make_kuid(current_user_ns(), in->uid);
690 kgid_t gid = make_kgid(current_user_ns(), in->gid);
/linux-master/fs/hfsplus/
H A Doptions.c139 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp);
152 sbi->gid = make_kgid(current_user_ns(), (gid_t)tmp);
/linux-master/include/linux/
H A Dcred.h386 #define current_user_ns() (current_cred_xxx(user_ns)) macro
388 static inline struct user_namespace *current_user_ns(void) function
/linux-master/kernel/bpf/
H A Dtoken.c150 if (current_user_ns() != userns) {
160 if (current_user_ns() == &init_user_ns) {
/linux-master/fs/quota/
H A Dquota.c42 if ((type == USRQUOTA && uid_eq(current_euid(), make_kuid(current_user_ns(), id))) ||
43 (type == GRPQUOTA && in_egroup_p(make_kgid(current_user_ns(), id))))
211 qid = make_kqid(current_user_ns(), type, id);
247 qid = make_kqid(current_user_ns(), type, id);
255 idq.dqb_id = from_kqid(current_user_ns(), qid);
306 qid = make_kqid(current_user_ns(), type, id);
635 qid = make_kqid(current_user_ns(), type, id);
715 qid = make_kqid(current_user_ns(), type, id);
742 qid = make_kqid(current_user_ns(), type, id);
748 id_out = from_kqid(current_user_ns(), qi
[all...]
/linux-master/security/keys/
H A Dpersistent.c131 struct user_namespace *ns = current_user_ns();
/linux-master/net/netfilter/
H A Dxt_owner.c32 (current_user_ns() != net->user_ns))
/linux-master/arch/s390/kernel/
H A Dcompat_linux.c137 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
138 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
/linux-master/arch/sparc/kernel/
H A Dsys_sparc32.c73 err |= put_user(from_kuid_munged(current_user_ns(), stat->uid), &statbuf->st_uid);
74 err |= put_user(from_kgid_munged(current_user_ns(), stat->gid), &statbuf->st_gid);
/linux-master/arch/x86/kernel/
H A Dsys_ia32.c136 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid));
137 SET_GID(gid, from_kgid_munged(current_user_ns(), stat->gid));
/linux-master/fs/proc/
H A Droot.c171 proc_apply_options(fs_info, fc, current_user_ns());
220 proc_apply_options(fs_info, fc, current_user_ns());
/linux-master/fs/efivarfs/
H A Dsuper.c296 opts->uid = make_kuid(current_user_ns(), result.uint_32);
301 opts->gid = make_kgid(current_user_ns(), result.uint_32);
/linux-master/fs/9p/
H A Dv9fs.c221 v9ses->dfltuid = make_kuid(current_user_ns(), option);
236 v9ses->dfltgid = make_kgid(current_user_ns(), option);
336 v9ses->uid = make_kuid(current_user_ns(), uid);
/linux-master/fs/hfs/
H A Dsuper.c253 hsb->s_uid = make_kuid(current_user_ns(), (uid_t)tmp);
264 hsb->s_gid = make_kgid(current_user_ns(), (gid_t)tmp);
/linux-master/arch/arm/kernel/
H A Dsys_oabi-compat.c131 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid);
132 tmp.st_gid = from_kgid_munged(current_user_ns(), stat->gid);
/linux-master/arch/s390/hypfs/
H A Dinode.c232 uid = make_kuid(current_user_ns(), result.uint_32);
238 gid = make_kgid(current_user_ns(), result.uint_32);
/linux-master/fs/autofs/
H A Dinode.c208 uid = make_kuid(current_user_ns(), result.uint_32);
214 gid = make_kgid(current_user_ns(), result.uint_32);

Completed in 489 milliseconds

12345