|
Message-Id: <1307889823-6169-1-git-send-email-segoon@openwall.com> Date: Sun, 12 Jun 2011 18:43:43 +0400 From: Vasiliy Kulikov <segoon@...nwall.com> To: linux-kernel@...r.kernel.org Cc: kernel-hardening@...ts.openwall.com, Andrew Morton <akpm@...ux-foundation.org>, Greg Kroah-Hartman <gregkh@...e.de>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet <eric.dumazet@...il.com> , netdev@...r.kernel.org Subject: [RFC v2 01/04] net: make net_create() globally visible Make net_create() visible outside of net/core/net_namespace.c to be able to create additional network namespaces inside of fs/proc/proc_net.c. Signed-off-by: Vasiliy Kulikov <segoon@...nwall.com> --- include/net/net_namespace.h | 2 ++ net/core/net_namespace.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 1bf812b..d40c61c 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -113,6 +113,8 @@ static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns) } #endif /* CONFIG_NET */ +extern struct net *net_create(void); + extern struct list_head net_namespace_list; diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 3f86026..c7c7310 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -216,7 +216,7 @@ static void net_free(struct net *net) kmem_cache_free(net_cachep, net); } -static struct net *net_create(void) +struct net *net_create(void) { struct net *net; int rv;
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.