]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - kernel/user_namespace.c
BCM270X_DT: Invert Pi3 power LED to match fw change
[mirror_ubuntu-zesty-kernel.git] / kernel / user_namespace.c
index 86b7854fec8ee0df88e3bf7d499859993915b8c0..eca75f02403fdd60851ade3874d8729b3e5bfb4e 100644 (file)
 #include <linux/projid.h>
 #include <linux/fs_struct.h>
 
+/*
+ * sysctl determining whether unprivileged users may unshare a new
+ * userns.  Allowed by default
+ */
+int unprivileged_userns_clone = 1;
+
 static struct kmem_cache *user_ns_cachep __read_mostly;
 static DEFINE_MUTEX(userns_state_mutex);
 
@@ -997,6 +1003,7 @@ bool current_in_userns(const struct user_namespace *target_ns)
        }
        return false;
 }
+EXPORT_SYMBOL(current_in_userns);
 
 static inline struct user_namespace *to_user_ns(struct ns_common *ns)
 {