Skip to content

Commit

Permalink
pidns: Export free_pid_ns
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ebiederm committed Aug 15, 2012
1 parent 4f82f45 commit 523a6a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/pid_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 523a6a9

Please sign in to comment.