Lines Matching refs:user_namespace
76 struct user_namespace { struct
80 struct user_namespace *parent; argument
121 struct user_namespace *ns; argument
129 extern struct user_namespace init_user_ns;
132 bool setup_userns_sysctls(struct user_namespace *ns);
133 void retire_userns_sysctls(struct user_namespace *ns);
134 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
136 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
158 static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type) in get_userns_rlimit_max()
163 static inline void set_userns_rlimit_max(struct user_namespace *ns, in set_userns_rlimit_max()
171 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
180 extern void __put_user_ns(struct user_namespace *ns);
182 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
197 extern bool userns_may_setgroups(const struct user_namespace *ns);
198 extern bool in_userns(const struct user_namespace *ancestor,
199 const struct user_namespace *child);
200 extern bool current_in_userns(const struct user_namespace *target_ns);
204 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
222 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
226 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
231 static inline bool in_userns(const struct user_namespace *ancestor, in in_userns()
232 const struct user_namespace *child) in in_userns()
237 static inline bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()