|
@@ -63,6 +63,7 @@ extern const struct seq_operations proc_projid_seq_operations;
|
|
|
extern ssize_t proc_uid_map_write(struct file *, const char __user *, size_t, loff_t *);
|
|
|
extern ssize_t proc_gid_map_write(struct file *, const char __user *, size_t, loff_t *);
|
|
|
extern ssize_t proc_projid_map_write(struct file *, const char __user *, size_t, loff_t *);
|
|
|
+extern bool userns_may_setgroups(const struct user_namespace *ns);
|
|
|
#else
|
|
|
|
|
|
static inline struct user_namespace *get_user_ns(struct user_namespace *ns)
|
|
@@ -87,6 +88,10 @@ static inline void put_user_ns(struct user_namespace *ns)
|
|
|
{
|
|
|
}
|
|
|
|
|
|
+static inline bool userns_may_setgroups(const struct user_namespace *ns)
|
|
|
+{
|
|
|
+ return true;
|
|
|
+}
|
|
|
#endif
|
|
|
|
|
|
#endif /* _LINUX_USER_H */
|