Patchwork [2/4] l2tp: set netnsok flag for netlink messages

login
register
mail settings
Submitter Tom Parkin
Date Feb. 1, 2013, 9:43 a.m.
Message ID <1359711783-4379-3-git-send-email-tparkin@katalix.com>
Download mbox | patch
Permalink /patch/217398/
State Accepted
Delegated to: David Miller
Headers show

Comments

Tom Parkin - Feb. 1, 2013, 9:43 a.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>
Signed-off-by: James Chapman <jchapman@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 */