pidns: Export free_pid_ns
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 4 Aug 2012 02:11:22 +0000 (19:11 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 15 Aug 2012 04:49:35 +0000 (21:49 -0700)
There is a least one modular user so export free_pid_ns so modules can
capture and use the pid namespace on the very rare occasion when it
makes sense.

Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/pid_namespace.c

index b3c7fd5542500ab13940814211692bbe3b7ef8d3..baa528d7dfbde35908b84c830761e510cce8f5cf 100644 (file)
@@ -16,6 +16,7 @@
 #include <linux/slab.h>
 #include <linux/proc_fs.h>
 #include <linux/reboot.h>
+#include <linux/export.h>
 
 #define BITS_PER_PAGE          (PAGE_SIZE*8)
 
@@ -144,6 +145,7 @@ void free_pid_ns(struct kref *kref)
        if (parent != NULL)
                put_pid_ns(parent);
 }
+EXPORT_SYMBOL_GPL(free_pid_ns);
 
 void zap_pid_ns_processes(struct pid_namespace *pid_ns)
 {