Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27C6DC433EF for ; Mon, 18 Jul 2022 22:05:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id A00A861039; Mon, 18 Jul 2022 22:05:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org A00A861039 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DOUQZP1pzW3y; Mon, 18 Jul 2022 22:05:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id ACE5360ACF; Mon, 18 Jul 2022 22:05:27 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org ACE5360ACF Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 47ABE1BF39D for ; Mon, 18 Jul 2022 22:05:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 21B794160B for ; Mon, 18 Jul 2022 22:05:26 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 21B794160B X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GegazjiU6rC4 for ; Mon, 18 Jul 2022 22:05:25 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.122]) by smtp4.osuosl.org (Postfix) with ESMTP id 2426F415D0 for ; Mon, 18 Jul 2022 22:05:25 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2426F415D0 Received: by busybox.osuosl.org (Postfix, from userid 4049) id C299083CCF; Mon, 18 Jul 2022 21:51:58 +0000 (UTC) From: Yann E. MORIN To: buildroot@buildroot.org Date: Tue, 19 Jul 2022 00:05:01 +0200 X-Git-Refname: refs/heads/master X-Git-Oldrev: 520c440b4b4f39cca2ca80b7eb7b014c6458e477 X-Git-Newrev: 079fccdee5a2a10fc8275094512b8423548ea147 X-Patchwork-Hint: ignore Message-Id: <20220718215158.C299083CCF@busybox.osuosl.org> Subject: [Buildroot] [git commit] package/sudo: fix SUDO_ENABLE_SUDO_GROUP_RULE following version bump X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" commit: https://git.buildroot.net/buildroot/commit/?id=079fccdee5a2a10fc8275094512b8423548ea147 branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master Since the version bump of sudo to v1.9.11p2 in commit 9b7f8da96b, the sed magic in SUDO_ENABLE_SUDO_GROUP_RULE no longer does its job, due to a slight change in the example sudoers file provided by upstream sudo. This commit fixes the regexp to match the new sudoers file. Fixes bug #14891 (https://bugs.busybox.net/show_bug.cgi?id=14891) Reported-by: Matthias Hardt Signed-off-by: Thomas Petazzoni Signed-off-by: Yann E. MORIN --- package/sudo/sudo.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/sudo/sudo.mk b/package/sudo/sudo.mk index 2b9ba76a51..4f9fdb4b2c 100644 --- a/package/sudo/sudo.mk +++ b/package/sudo/sudo.mk @@ -80,7 +80,7 @@ define SUDO_USERS endef define SUDO_ENABLE_SUDO_GROUP_RULE - $(SED) '/^# \%sudo\tALL=(ALL) ALL/s/^# //' $(TARGET_DIR)/etc/sudoers + $(SED) '/^# \%sudo\tALL=(ALL:ALL) ALL/s/^# //' $(TARGET_DIR)/etc/sudoers endef SUDO_POST_INSTALL_TARGET_HOOKS += SUDO_ENABLE_SUDO_GROUP_RULE _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot