Lines Matching refs:user_namespace
55 struct user_namespace { struct
60 struct user_namespace *parent; argument
93 struct user_namespace *ns; argument
99 extern struct user_namespace init_user_ns;
101 bool setup_userns_sysctls(struct user_namespace *ns);
102 void retire_userns_sysctls(struct user_namespace *ns);
103 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
108 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
117 extern void __put_user_ns(struct user_namespace *ns);
119 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
134 extern bool userns_may_setgroups(const struct user_namespace *ns);
135 extern bool in_userns(const struct user_namespace *ancestor,
136 const struct user_namespace *child);
137 extern bool current_in_userns(const struct user_namespace *target_ns);
141 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
159 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
163 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
168 static inline bool in_userns(const struct user_namespace *ancestor, in in_userns()
169 const struct user_namespace *child) in in_userns()
174 static inline bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()