Lines Matching refs:user_namespace
30 struct user_namespace *ns, int cap_setid,
34 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
44 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns()
85 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
199 struct user_namespace *parent, *ns = in free_user_ns()
200 container_of(work, struct user_namespace, work); in free_user_ns()
231 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
422 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
441 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid()
466 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged()
490 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
509 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid()
533 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged()
557 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
576 projid_t from_kprojid(struct user_namespace *targ, kprojid_t kprojid) in from_kprojid()
601 projid_t from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid) in from_kprojid_munged()
615 struct user_namespace *ns = seq->private; in uid_m_show()
617 struct user_namespace *lower_ns; in uid_m_show()
636 struct user_namespace *ns = seq->private; in gid_m_show()
638 struct user_namespace *lower_ns; in gid_m_show()
657 struct user_namespace *ns = seq->private; in projid_m_show()
659 struct user_namespace *lower_ns; in projid_m_show()
694 struct user_namespace *ns = seq->private; in uid_m_start()
701 struct user_namespace *ns = seq->private; in gid_m_start()
708 struct user_namespace *ns = seq->private; in projid_m_start()
891 struct user_namespace *map_ns, in verify_root_map()
895 const struct user_namespace *file_ns = file->f_cred->user_ns; in verify_root_map()
939 struct user_namespace *map_ns = seq->private; in map_write()
1124 struct user_namespace *ns = seq->private; in proc_uid_map_write()
1125 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_uid_map_write()
1141 struct user_namespace *ns = seq->private; in proc_gid_map_write()
1142 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_gid_map_write()
1158 struct user_namespace *ns = seq->private; in proc_projid_map_write()
1159 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_projid_map_write()
1173 struct user_namespace *ns, int cap_setid, in new_idmap_permitted()
1216 struct user_namespace *ns = seq->private; in proc_setgroups_show()
1229 struct user_namespace *ns = seq->private; in proc_setgroups_write()
1292 bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
1312 bool in_userns(const struct user_namespace *ancestor, in in_userns()
1313 const struct user_namespace *child) in in_userns()
1315 const struct user_namespace *ns; in in_userns()
1321 bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()
1329 struct user_namespace *user_ns; in userns_get()
1345 struct user_namespace *user_ns = to_user_ns(ns); in userns_install()
1379 struct user_namespace *my_user_ns = current_user_ns(); in ns_get_owner()
1380 struct user_namespace *owner, *p; in ns_get_owner()
1395 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()
1411 user_ns_cachep = KMEM_CACHE(user_namespace, SLAB_PANIC | SLAB_ACCOUNT); in user_namespaces_init()