X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 33012DC006D for ; Sun, 8 May 2016 20:08:05 +0000 (UTC) Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id E8446DC0065 for ; Sun, 8 May 2016 20:08:04 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id y7so14495688pfb.0 for ; Sun, 08 May 2016 13:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2APNjMz1AxsosvB9niddNi8aNsORAazp8wYAqjytruA=; b=YiHAOeF7oxF8+/85bneaJNOIJ+H8KKJKZgwDHfw7m8uBFIL4Ldwkvqc1OR4YpZp0Ag g4YPO9I111fYBOgGnEHp4sMgyLg39PpMcRIemXAF3N+gPYzdVAWSp6pFEecjAISdW6CU 6C+CDv49mKj8EUUOQtJerfXWigCaTMNeJ1mWiQPl5WwPYtEKG9RJEbf+4CqfpBI4P9/H r6ETrSen+X3xDLefhNkbDTPp8LFegYGESGNTAMZ1844AdPkqLaT5vrwLNZWQubcFgb+7 eddUSsghw6QI/WBYTfM9ksDmg6DJz1QsohB/Gr2OfsqDewpaVfBAhJykNbO1nv6Vd8lR ul0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2APNjMz1AxsosvB9niddNi8aNsORAazp8wYAqjytruA=; b=La6FRe1xboSZqk5/q3G11SZTesgdiFZX0lyBC/bvYXj2pGIcfBhmMnPfHS2x8sTROq ZxlKroi8QAXU+Bgpd984mzITz6Rp/Qeg4ZFmYkkBxV05JHfpCz+gmMi486Y7AwDKlqOU M6/2A6u6ZGqv4wDzEVN1qempNKF3XGg1M+PhWdafZHrFnKr4q6snEvK2hS3yr++YaYf7 5LYwD2NLe/fc/Sb8kTHXyne142VQ2RbXS/oC2Oh+dtzWeOqhW4J6z1mL6Axwy9bYLCIi OEBLFU3XK3gUAdDjrA4aDXDbOsTyxkR7OOcNDYGjV7q4jleTnTTNUf73RqMazic/56nT sLyA== X-Gm-Message-State: AOPr4FX8qqckzX+FbCU/6VJENbQYme/cAShFtTHLzyLlyZLjIl32i4OqV5anweIC3jusAg== X-Received: by 10.98.82.19 with SMTP id g19mr44725548pfb.157.1462738083964; Sun, 08 May 2016 13:08:03 -0700 (PDT) Received: from newbook ([50.0.225.71]) by smtp.gmail.com with ESMTPSA id m12sm35186723pfi.5.2016.05.08.13.08.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 May 2016 13:08:03 -0700 (PDT) Date: Sun, 8 May 2016 13:07:58 -0700 From: Isaac Dunham To: Alba Pompeo Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] ping: ping is not a valid applet Message-ID: <20160508200757.GA10522@newbook> References: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) X-Virus-Scanned: ClamAV using ClamSMTP --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, May 08, 2016 at 01:36:17PM -0300, Alba Pompeo wrote: > I'm on edge and receive this message when trying to ping an IP. > ping: ping is not a valid applet > Is there a fix? > Thanks. > Ciao. This is an issue I mentioned previously, where bbsuid no longer recognizes ping as a valid command, but the symlink has not been updated to point to busybox. Workaround: rm -f /bin/ping && /bin/busybox --install -s Fix: See attached patch. The sysctl settings shown are disabled/netdev (gid=28) only/everyone. HTH, Isaac Dunham --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-main-busybox-fix-ping-on-upgrades.patch" >From be58791fd2d2149288352b6793ccf6675ab2c3e1 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Sun, 8 May 2016 12:47:15 -0700 Subject: [PATCH] main/busybox: fix ping on upgrades ping was a symlink to bbsuid to allow non-root pings, but the support for ping in bbsuid was dropped when ICMP_ECHO support was patched in. So the old ping symlink needs to be deleted. This patch is not a complete fix: non-root ping requires setting a sysctl to allow the appropriate groups to access ping. This sysctl is a range, specifying the minimum and maximum gid allowed. Example settings: net.ipv4.ping_group_range=1 0 net.ipv4.ping_group_range=28 28 net.ipv4.ping_group_range=0 4294967295 --- main/busybox/APKBUILD | 2 +- main/busybox/busybox.post-upgrade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main/busybox/APKBUILD b/main/busybox/APKBUILD index 02303ea..91f2d01 100644 --- a/main/busybox/APKBUILD +++ b/main/busybox/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=busybox pkgver=1.24.2 -pkgrel=2 +pkgrel=3 pkgdesc="Size optimized toolbox of many common UNIX utilities" url=http://busybox.net arch="all" diff --git a/main/busybox/busybox.post-upgrade b/main/busybox/busybox.post-upgrade index 268f22d..f972562 100644 --- a/main/busybox/busybox.post-upgrade +++ b/main/busybox/busybox.post-upgrade @@ -7,5 +7,9 @@ for link in /bin/install /bin/ip /bin/vi /usr/bin/lspci; do fi done +if [ -L "/bin/ping" ] && [ "$(readlink /bin/ping)" = "/bin/bbsuid" ]; then + rm /bin/ping +fi + # We need the symlinks early exec /bin/busybox --install -s -- 2.8.1 --Q68bSM7Ycu6FN28Q-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---