Lines Matching refs:user_namespace

68 struct user_namespace {  struct
72 struct user_namespace *parent; argument
109 struct user_namespace *ns; argument
116 extern struct user_namespace init_user_ns;
119 bool setup_userns_sysctls(struct user_namespace *ns);
120 void retire_userns_sysctls(struct user_namespace *ns);
121 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
123 struct ucounts *alloc_ucounts(struct user_namespace *ns, kuid_t uid);
138 static inline long get_userns_rlimit_max(struct user_namespace *ns, enum rlimit_type type) in get_userns_rlimit_max()
143 static inline void set_userns_rlimit_max(struct user_namespace *ns, in set_userns_rlimit_max()
151 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
160 extern void __put_user_ns(struct user_namespace *ns);
162 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
177 extern bool userns_may_setgroups(const struct user_namespace *ns);
178 extern bool in_userns(const struct user_namespace *ancestor,
179 const struct user_namespace *child);
180 extern bool current_in_userns(const struct user_namespace *target_ns);
184 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
202 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
206 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
211 static inline bool in_userns(const struct user_namespace *ancestor, in in_userns()
212 const struct user_namespace *child) in in_userns()
217 static inline bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()