Lines Matching refs:user_namespace
57 struct user_namespace { struct
62 struct user_namespace *parent; argument
101 struct user_namespace *ns; argument
107 extern struct user_namespace init_user_ns;
109 bool setup_userns_sysctls(struct user_namespace *ns);
110 void retire_userns_sysctls(struct user_namespace *ns);
111 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
116 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
125 extern void __put_user_ns(struct user_namespace *ns);
127 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
142 extern bool userns_may_setgroups(const struct user_namespace *ns);
143 extern bool in_userns(const struct user_namespace *ancestor,
144 const struct user_namespace *child);
145 extern bool current_in_userns(const struct user_namespace *target_ns);
149 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
167 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
171 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
176 static inline bool in_userns(const struct user_namespace *ancestor, in in_userns()
177 const struct user_namespace *child) in in_userns()
182 static inline bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()