From patchwork Sat Jan 13 20:19:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Einar_J=C3=B3n?= X-Patchwork-Id: 860370 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sT4iBZYk"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zJrZd2yh3z9sNx for ; Sun, 14 Jan 2018 07:20:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1246C88142; Sat, 13 Jan 2018 20:20:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DzrPwFK-moMc; Sat, 13 Jan 2018 20:20:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 81ABD88103; Sat, 13 Jan 2018 20:20:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A64741C27AE for ; Sat, 13 Jan 2018 20:20:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A276587CAE for ; Sat, 13 Jan 2018 20:20:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iZhBDU6f4mg1 for ; Sat, 13 Jan 2018 20:20:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id C702387C99 for ; Sat, 13 Jan 2018 20:20:00 +0000 (UTC) Received: by mail-lf0-f68.google.com with SMTP id a204so1041047lfa.2 for ; Sat, 13 Jan 2018 12:20:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=xhRnxz9Vd0PmLJeCKzJBVh+gV0T/LsLlprdVsF/FGPY=; b=sT4iBZYkFxDlTSlL2AtOSSB3PiYpNLiEhjmZ8gOzasw6qZljndJxyNZHQ9FgDz/0nj vfUC4iW35u0sh4xV/hm7WJMxbAPIUUg4MZ89Pn3+yrJk+X0xNKXR+QC9E3+EWxkSBD9w ln0T5LPD8yyluH9XpLV1ZTNM1Ivfzg9gwzJbYcmtBjk8gr9r6pLsrTJCZriLht1yfnKF 8A9kMATz7mr0ZbfCLKvOpLlNmT3MKoDy3dDYn/Ci7CS3cqnvqfaCBQe65UXUNoTZWKC0 bYLF/2y1vfddqrQcRpZao9sH+4mWMGz4kxfE8xMz2qjaFEJfNL8WdLcplH4BomNjO0VF 7p2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xhRnxz9Vd0PmLJeCKzJBVh+gV0T/LsLlprdVsF/FGPY=; b=CDrQw58V9WdkR/kbq5/kdrhjrSjISvHEJgcxEU5hUIJ/5XztrOlAnKG6fT5DeitHp/ yMBcNgwIpIwmczvV9OeFid8YMHr/RWj6onXn66dyKNsF1nmBzFTgh8xB7EXgWll9UU+S zCdALxylMyWV8Oi5lFd1Y55Vk9Y4UmB6MIHu9IHsY33gY8ajY5XG0bCA3k2hfmG1/Qj+ AQyAkk3znlzeN0DP3AlBffDpn/frx/tDLrBCBK1+0BnJm0QVI351MBr2jsCtGzddYoMA xE9u45V5+BIez8cqbicO4BIQiMbXwb1J1WPBK2bqY5ZDJNeSOZIumzjWfxUfoFuXlpVj xZxQ== X-Gm-Message-State: AKwxyteZ9Gna/fFh6MKoUGZjlQA+rwrWImvlIzoNPdZqgMAcqmXWs4cQ vRVA6h6sFgXu61oMHh68W2Vl6g== X-Google-Smtp-Source: ACJfBou/uayegXXYmuQYotO/OKAltyf6FLiYLKwdsyoa6tPwXvXEWlCfgjNErwXnn/Vu/m6FJMGVUA== X-Received: by 10.46.97.17 with SMTP id v17mr4338574ljb.70.1515874798690; Sat, 13 Jan 2018 12:19:58 -0800 (PST) Received: from localhost.localdomain ([143.176.206.168]) by smtp.gmail.com with ESMTPSA id d74sm4759176ljd.71.2018.01.13.12.19.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Jan 2018 12:19:57 -0800 (PST) From: tolvupostur@gmail.com To: buildroot@buildroot.org Date: Sat, 13 Jan 2018 21:19:42 +0100 Message-Id: <1515874782-14986-1-git-send-email-tolvupostur@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] iputils: fix ping and traceroute6 executable permissions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Einar Jon Gunnarsson MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Einar Jon Gunnarsson The iputils executables are installed without the setuid bit set, which prevents some programs from working. This patch adds a post-install hook to fix the permissions of the ping and traceroute6 executables. Signed-off-by: Einar Jon Gunnarsson --- package/iputils/iputils.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/iputils/iputils.mk b/package/iputils/iputils.mk index b20cd12..13e3389 100644 --- a/package/iputils/iputils.mk +++ b/package/iputils/iputils.mk @@ -69,4 +69,9 @@ define IPUTILS_INSTALL_TARGET_CMDS $(INSTALL) -D -m 755 $(@D)/traceroute6 $(TARGET_DIR)/bin/traceroute6 endef +define IPUTILS_PERMISSIONS + /bin/ping f 4755 0 0 - - - - - + /bin/traceroute6 f 4755 0 0 - - - - - +endef + $(eval $(generic-package))