Lines Matching refs:user_namespace
28 struct user_namespace *ns, int cap_setid,
32 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
42 static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns) in set_cred_user_ns()
71 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns()
176 struct user_namespace *parent, *ns = in free_user_ns()
177 container_of(work, struct user_namespace, work); in free_user_ns()
203 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
386 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
405 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid()
430 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged()
454 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
473 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid()
497 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged()
521 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
540 projid_t from_kprojid(struct user_namespace *targ, kprojid_t kprojid) in from_kprojid()
565 projid_t from_kprojid_munged(struct user_namespace *targ, kprojid_t kprojid) in from_kprojid_munged()
579 struct user_namespace *ns = seq->private; in uid_m_show()
581 struct user_namespace *lower_ns; in uid_m_show()
600 struct user_namespace *ns = seq->private; in gid_m_show()
602 struct user_namespace *lower_ns; in gid_m_show()
621 struct user_namespace *ns = seq->private; in projid_m_show()
623 struct user_namespace *lower_ns; in projid_m_show()
658 struct user_namespace *ns = seq->private; in uid_m_start()
665 struct user_namespace *ns = seq->private; in gid_m_start()
672 struct user_namespace *ns = seq->private; in projid_m_start()
851 struct user_namespace *ns = seq->private; in map_write()
1036 struct user_namespace *ns = seq->private; in proc_uid_map_write()
1037 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_uid_map_write()
1053 struct user_namespace *ns = seq->private; in proc_gid_map_write()
1054 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_gid_map_write()
1070 struct user_namespace *ns = seq->private; in proc_projid_map_write()
1071 struct user_namespace *seq_ns = seq_user_ns(seq); in proc_projid_map_write()
1085 struct user_namespace *ns, int cap_setid, in new_idmap_permitted()
1124 struct user_namespace *ns = seq->private; in proc_setgroups_show()
1137 struct user_namespace *ns = seq->private; in proc_setgroups_write()
1200 bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
1220 bool in_userns(const struct user_namespace *ancestor, in in_userns()
1221 const struct user_namespace *child) in in_userns()
1223 const struct user_namespace *ns; in in_userns()
1229 bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()
1235 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns()
1237 return container_of(ns, struct user_namespace, ns); in to_user_ns()
1242 struct user_namespace *user_ns; in userns_get()
1258 struct user_namespace *user_ns = to_user_ns(ns); in userns_install()
1289 struct user_namespace *my_user_ns = current_user_ns(); in ns_get_owner()
1290 struct user_namespace *owner, *p; in ns_get_owner()
1305 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()
1322 user_ns_cachep = KMEM_CACHE(user_namespace, SLAB_PANIC); in user_namespaces_init()