blob: 79605c05e5675f854b24b42cbd005f7e7d8ef64b [file] [log] [blame]
network namespaces didn't get usernamespaces pegged until 3.8
via commit 038e7332b8.
--- a/net/ieee802154/reassembly.c
+++ b/net/ieee802154/reassembly.c
@@ -481,9 +481,11 @@ static int __net_init lowpan_frags_ns_sy
table[1].extra2 = &ieee802154_lowpan->frags.high_thresh;
table[2].data = &ieee802154_lowpan->frags.timeout;
+#if LINUX_VERSION_IS_GEQ(3,8,0)
/* Don't export sysctls to unprivileged users */
if (net->user_ns != &init_user_ns)
table[0].procname = NULL;
+#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */
}
hdr = register_net_sysctl(net, "net/ieee802154/6lowpan", table);