[openib-general] [PATCH RFC 3/31] net: Add a network namespace parameter to tasks

Eric W. Biederman ebiederm at xmission.com
Thu Jan 25 11:00:05 PST 2007


From: Eric W. Biederman <ebiederm at xmission.com> - unquoted

This is the network namespace from which all which all sockets
and anything else under user control ultimately get their network
namespace parameters.

Signed-off-by: Eric W. Biederman <ebiederm at xmission.com>
---
 include/linux/nsproxy.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/nsproxy.h b/include/linux/nsproxy.h
index 0b9f0dc..cc76610 100644
--- a/include/linux/nsproxy.h
+++ b/include/linux/nsproxy.h
@@ -3,6 +3,7 @@
 
 #include <linux/spinlock.h>
 #include <linux/sched.h>
+#include <linux/net_namespace_type.h>
 
 struct mnt_namespace;
 struct uts_namespace;
@@ -28,6 +29,7 @@ struct nsproxy {
 	struct ipc_namespace *ipc_ns;
 	struct mnt_namespace *mnt_ns;
 	struct pid_namespace *pid_ns;
+	net_t		      net_ns;
 };
 extern struct nsproxy init_nsproxy;
 
-- 
1.4.4.1.g278f





More information about the general mailing list