summaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/ping_init_sock.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/linux-grsec/ping_init_sock.patch')
-rw-r--r--main/linux-grsec/ping_init_sock.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/linux-grsec/ping_init_sock.patch b/main/linux-grsec/ping_init_sock.patch
new file mode 100644
index 000000000..38b0c811b
--- /dev/null
+++ b/main/linux-grsec/ping_init_sock.patch
@@ -0,0 +1,13 @@
+http://forums.grsecurity.net/viewtopic.php?f=3&t=3982
+
+--- ./net/ipv4/ping.c.orig
++++ ./net/ipv4/ping.c
+@@ -259,7 +259,7 @@
+
+ inet_get_ping_group_range_net(net, &low, &high);
+ if (gid_lte(low, group) && gid_lte(group, high))
+- goto out_release_group;
++ return 0;
+
+ group_info = get_current_groups();
+ count = group_info->ngroups;