]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/ip_fragment.c
Merge tag 'tegra-for-3.8-fixes-for-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / net / ipv4 / ip_fragment.c
index 8d5cc75dac88286fa6a10f24d7cb8f16c7c1bc14..eb9d63a570cd1ce595076096d9b2aea3723a4c38 100644 (file)
@@ -801,6 +801,10 @@ static int __net_init ip4_frags_ns_ctl_register(struct net *net)
                table[0].data = &net->ipv4.frags.high_thresh;
                table[1].data = &net->ipv4.frags.low_thresh;
                table[2].data = &net->ipv4.frags.timeout;
+
+               /* Don't export sysctls to unprivileged users */
+               if (net->user_ns != &init_user_ns)
+                       table[0].procname = NULL;
        }
 
        hdr = register_net_sysctl(net, "net/ipv4", table);