Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
N7 Pidns patch
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c
index 08dfd6ad8f3..155bdf703bc 100644
--- a/fs/proc/namespaces.c
+++ b/fs/proc/namespaces.c
@@ -24,9 +24,6 @@ static const struct proc_ns_operations *ns_entries[] = {
#ifdef CONFIG_IPC_NS
&ipcns_operations,
#endif
-#ifdef CONFIG_PID_NS
- &pidns_operations,
-#endif
&mntns_operations,
};
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h
index 6c890170af8..d9625050b0c 100644
--- a/include/linux/proc_fs.h
+++ b/include/linux/proc_fs.h
@@ -272,7 +272,6 @@ struct proc_ns_operations {
extern const struct proc_ns_operations netns_operations;
extern const struct proc_ns_operations utsns_operations;
extern const struct proc_ns_operations ipcns_operations;
-extern const struct proc_ns_operations pidns_operations;
extern const struct proc_ns_operations mntns_operations;
union proc_op {
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
index c14b7b9fe41..dfc14055966 100644
--- a/kernel/user_namespace.c
+++ b/kernel/user_namespace.c
@@ -9,6 +9,7 @@
#include <linux/nsproxy.h>
#include <linux/slab.h>
#include <linux/user_namespace.h>
+#include <linux/proc_fs.h>
#include <linux/highuid.h>
#include <linux/cred.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.