summaryrefslogtreecommitdiff
path: root/patches/0008-net-user-ns.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0008-net-user-ns.patch')
-rw-r--r--patches/0008-net-user-ns.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/0008-net-user-ns.patch b/patches/0008-net-user-ns.patch
index f2a7e5dc..79605c05 100644
--- a/patches/0008-net-user-ns.patch
+++ b/patches/0008-net-user-ns.patch
@@ -7,11 +7,11 @@ via commit 038e7332b8.
table[1].extra2 = &ieee802154_lowpan->frags.high_thresh;
table[2].data = &ieee802154_lowpan->frags.timeout;
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,8,0)
++#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_CODE <= KERNEL_VERSION(3,8,0) */
++#endif /* LINUX_VERSION_IS_GEQ(3,8,0) */
}
hdr = register_net_sysctl(net, "net/ieee802154/6lowpan", table);