Lines Matching defs:ns
35 static struct ucounts *inc_user_namespaces(struct user_namespace *ns, kuid_t uid) in inc_user_namespaces()
74 struct user_namespace *ns, *parent_ns = new->user_ns; in create_user_ns() local
178 struct user_namespace *parent, *ns = in free_user_ns() local
195 void __put_user_ns(struct user_namespace *ns) in __put_user_ns()
286 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) in make_kuid()
354 kgid_t make_kgid(struct user_namespace *ns, gid_t gid) in make_kgid()
421 kprojid_t make_kprojid(struct user_namespace *ns, projid_t projid) in make_kprojid()
479 struct user_namespace *ns = seq->private; in uid_m_show() local
500 struct user_namespace *ns = seq->private; in gid_m_show() local
521 struct user_namespace *ns = seq->private; in projid_m_show() local
554 struct user_namespace *ns = seq->private; in uid_m_start() local
561 struct user_namespace *ns = seq->private; in gid_m_start() local
568 struct user_namespace *ns = seq->private; in projid_m_start() local
648 struct user_namespace *ns = seq->private; in map_write() local
804 struct user_namespace *ns = seq->private; in proc_uid_map_write() local
821 struct user_namespace *ns = seq->private; in proc_gid_map_write() local
838 struct user_namespace *ns = seq->private; in proc_projid_map_write() local
853 struct user_namespace *ns, int cap_setid, in new_idmap_permitted()
892 struct user_namespace *ns = seq->private; in proc_setgroups_show() local
905 struct user_namespace *ns = seq->private; in proc_setgroups_write() local
968 bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
991 const struct user_namespace *ns; in in_userns() local
1002 static inline struct user_namespace *to_user_ns(struct ns_common *ns) in to_user_ns()
1018 static void userns_put(struct ns_common *ns) in userns_put()
1023 static int userns_install(struct nsproxy *nsproxy, struct ns_common *ns) in userns_install()
1054 struct ns_common *ns_get_owner(struct ns_common *ns) in ns_get_owner()
1072 static struct user_namespace *userns_owner(struct ns_common *ns) in userns_owner()