Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 772698f6 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by David S. Miller
Browse files

[NET]: Add a network namespace parameter to tasks



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: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f256bec
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -9,6 +9,7 @@
#include <linux/ipc.h>
#include <linux/ipc.h>
#include <linux/pid_namespace.h>
#include <linux/pid_namespace.h>
#include <linux/user_namespace.h>
#include <linux/user_namespace.h>
#include <net/net_namespace.h>


#define INIT_FDTABLE \
#define INIT_FDTABLE \
{							\
{							\
@@ -78,6 +79,7 @@ extern struct nsproxy init_nsproxy;
	.nslock		= __SPIN_LOCK_UNLOCKED(nsproxy.nslock),		\
	.nslock		= __SPIN_LOCK_UNLOCKED(nsproxy.nslock),		\
	.uts_ns		= &init_uts_ns,					\
	.uts_ns		= &init_uts_ns,					\
	.mnt_ns		= NULL,						\
	.mnt_ns		= NULL,						\
	.net_ns		= &init_net,					\
	INIT_IPC_NS(ipc_ns)						\
	INIT_IPC_NS(ipc_ns)						\
	.user_ns	= &init_user_ns,				\
	.user_ns	= &init_user_ns,				\
}
}
+1 −0
Original line number Original line Diff line number Diff line
@@ -29,6 +29,7 @@ struct nsproxy {
	struct mnt_namespace *mnt_ns;
	struct mnt_namespace *mnt_ns;
	struct pid_namespace *pid_ns;
	struct pid_namespace *pid_ns;
	struct user_namespace *user_ns;
	struct user_namespace *user_ns;
	struct net 	     *net_ns;
};
};
extern struct nsproxy init_nsproxy;
extern struct nsproxy init_nsproxy;