Patchwork [RFC,1/3] l2tp: set netnsok flag for netlink messages

login
register
mail settings
Submitter Tom Parkin
Date Jan. 4, 2013, 5:51 p.m.
Message ID <1357321908-30619-2-git-send-email-tparkin@katalix.com>
Download mbox | patch
Permalink /patch/209505/
State RFC
Delegated to: David Miller
Headers show

Comments

Tom Parkin - Jan. 4, 2013, 5:51 p.m.
The L2TP netlink code can run in namespaces.  Set the netnsok flag in
genl_family to true to reflect that fact.

Signed-off-by: Tom Parkin <tparkin@katalix.com>
---
 net/l2tp/l2tp_netlink.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c
index bbba3a1..c1bab22 100644
--- a/net/l2tp/l2tp_netlink.c
+++ b/net/l2tp/l2tp_netlink.c
@@ -37,6 +37,7 @@  static struct genl_family l2tp_nl_family = {
 	.version	= L2TP_GENL_VERSION,
 	.hdrsize	= 0,
 	.maxattr	= L2TP_ATTR_MAX,
+	.netnsok	= true,
 };
 
 /* Accessed under genl lock */