X-Git-Url: http://git.onelab.eu/?p=linux-2.6.git;a=blobdiff_plain;f=linux-2.6-523-raw-sockets.patch;h=196045e03c56adb3abfe072bf428969a267e2238;hp=f24ebd8176e8b1c34220b45397fb91bdcde46aa9;hb=HEAD;hpb=14d82827bec85332e309be7f90cbd44d76e02810 diff --git a/linux-2.6-523-raw-sockets.patch b/linux-2.6-523-raw-sockets.patch index f24ebd817..196045e03 100644 --- a/linux-2.6-523-raw-sockets.patch +++ b/linux-2.6-523-raw-sockets.patch @@ -63,7 +63,7 @@ index 9e8942b..1c0b4a5 100644 +++ b/net/ipv4/af_inet.c @@ -332,6 +332,9 @@ lookup_protocol: if ((protocol == IPPROTO_ICMP) && - nx_capable(CAP_NET_RAW, NXC_RAW_ICMP)) + nx_capable(CAP_NET_RAW, NXC_RAW_ICMP)) goto override; + if (sock->type == SOCK_RAW && + nx_capable(CAP_NET_RAW, NXC_RAW_SOCKET))