Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753258Ab1DLFOH (ORCPT ); Tue, 12 Apr 2011 01:14:07 -0400 Received: from mother.openwall.net ([195.42.179.200]:53176 "HELO mother.openwall.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751097Ab1DLFOF (ORCPT ); Tue, 12 Apr 2011 01:14:05 -0400 Date: Tue, 12 Apr 2011 09:06:59 +0400 From: Solar Designer To: Vasiliy Kulikov Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Pavel Kankovsky , Kees Cook , Dan Rosenberg , Eugene Teo , Nelson Elhage , "David S. Miller" , Alexey Kuznetsov , Pekka Savola , James Morris , Hideaki YOSHIFUJI , Patrick McHardy Subject: Re: [PATCH] net: ipv4: add IPPROTO_ICMP socket kind Message-ID: <20110412050659.GA14129@openwall.com> References: <20110409101514.GA4262@albatros> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110409101514.GA4262@albatros> User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1894 Lines: 43 On Sat, Apr 09, 2011 at 02:15:14PM +0400, Vasiliy Kulikov wrote: > This patch adds IPPROTO_ICMP socket kind. It makes it possible to send > ICMP_ECHO messages and receive the corresponding ICMP_ECHOREPLY messages > without any special privileges. In other words, the patch makes it > possible to implement setuid-less and CAP_NET_RAW-less /bin/ping. In > order not to increase the kernel's attack surface (in case of > vulnerabilities in the newly added code), the new functionality is > disabled by default, but is enabled at bootup by supporting Linux > distributions, optionally with restriction to a group or a group range ... > For Openwall GNU/*/Linux it is the last step on the road to the > setuid-less distro. More correctly, it _was_ the last step - we've already taken it, so a revision of the patch (against OpenVZ/RHEL5 kernels) is currently in use. We would really like this accepted into mainline, which is why Vasiliy spends extra effort to keep the patch updated to current mainline kernels and re-test it. If there are any comments/concerns/objections, we'd be happy to hear those. > Signed-off-by: Vasiliy Kulikov Acked-by: Solar Designer > include/net/netns/ipv4.h | 2 + > include/net/ping.h | 69 ++++ > net/ipv4/Kconfig | 21 + > net/ipv4/Makefile | 1 + > net/ipv4/af_inet.c | 36 ++ > net/ipv4/icmp.c | 14 +- > net/ipv4/ping.c | 933 ++++++++++++++++++++++++++++++++++++++++++++ > net/ipv4/sysctl_net_ipv4.c | 90 +++++ > 8 files changed, 1165 insertions(+), 1 deletions(-) Thanks, Alexander -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/