From patchwork Sat Aug 4 20:11:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 175126 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 780702C008E for ; Sun, 5 Aug 2012 06:11:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 57F45319E6; Sat, 4 Aug 2012 20:11:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dMfq6Sqymo2c; Sat, 4 Aug 2012 20:11:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 7639D31995; Sat, 4 Aug 2012 20:11:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5F1118F791 for ; Sat, 4 Aug 2012 20:11:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 457EF8D68B for ; Sat, 4 Aug 2012 20:11:15 +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 6Nms5gfBgp5Y for ; Sat, 4 Aug 2012 20:11:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id 078A68D706 for ; Sat, 4 Aug 2012 20:11:07 +0000 (UTC) Received: by weyx43 with SMTP id x43so2330376wey.16 for ; Sat, 04 Aug 2012 13:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=xkBBEEOlT+RVP43+5hrj+YCNozlAMjhc75IesWBxOcM=; b=lFp+dgFXTYOLaaF9htE3HFQHdsjNEUaMyD6bF+iOILTS6tyHRbdIiHqL1B1BERts+V CO5XL/EW2oY8FtkWTMJhOOEWak4idnQ5/v8HfTCA828Znps7q1aVN1PkM/lSatfl67wk AsEOpxtLgoTkM/V5x70lWdQTogUdktSLLHX2emdzbyarFGXYNgNLFW/UYsq3dNz9lwT0 bdJ7F8lQdeJuv+d6mJqQC8xkg+QejnVi2aRuk6u/NM5s1/+WM1xMYcWxESdfD9aiiUxo CdEPWrKcVMl11hayNPDzHwthZP/J73C+GrcMKBKeIxN69mqdBNKvS6jWlkgrvDgKwrbb MHRA== Received: by 10.180.94.164 with SMTP id dd4mr6283372wib.1.1344111065530; Sat, 04 Aug 2012 13:11:05 -0700 (PDT) Received: from localhost.localdomain ([95.150.144.113]) by mx.google.com with ESMTPS id j6sm7869934wiy.4.2012.08.04.13.11.03 (version=SSLv3 cipher=OTHER); Sat, 04 Aug 2012 13:11:04 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Sat, 4 Aug 2012 21:11:01 +0100 Message-Id: <1344111062-4616-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH v2] sudo: fix main executable permissions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Simon Dawson The sudo executable is installed without the setuid bit set, which prevents sudo from working. This patch adds a post-install hook to fix the permissions of the sudo executable. Signed-off-by: Simon Dawson --- v2: Use generic package permissions mechanism, as suggested by Thomas Petazzoni package/sudo/sudo.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 9b0ebed..15e06fa 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -14,4 +14,8 @@ SUDO_CONF_OPT = \ --without-interfaces \ --without-pam +define SUDO_PERMISSIONS +/usr/bin/sudo f 4755 0 0 - - - - - +endef + $(eval $(autotools-package))