Lines Matching refs:user_namespace
55 struct user_namespace { struct
60 struct user_namespace *parent; argument
83 struct user_namespace *ns; argument
89 extern struct user_namespace init_user_ns;
91 bool setup_userns_sysctls(struct user_namespace *ns);
92 void retire_userns_sysctls(struct user_namespace *ns);
93 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type);
98 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
107 extern void __put_user_ns(struct user_namespace *ns);
109 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
124 extern bool userns_may_setgroups(const struct user_namespace *ns);
125 extern bool in_userns(const struct user_namespace *ancestor,
126 const struct user_namespace *child);
127 extern bool current_in_userns(const struct user_namespace *target_ns);
131 static inline struct user_namespace *get_user_ns(struct user_namespace *ns) in get_user_ns()
149 static inline void put_user_ns(struct user_namespace *ns) in put_user_ns()
153 static inline bool userns_may_setgroups(const struct user_namespace *ns) in userns_may_setgroups()
158 static inline bool in_userns(const struct user_namespace *ancestor, in in_userns()
159 const struct user_namespace *child) in in_userns()
164 static inline bool current_in_userns(const struct user_namespace *target_ns) in current_in_userns()