From patchwork Sun Jan 29 20:06:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Trofimov X-Patchwork-Id: 46522 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7FB9A27BBED; Sun, 29 Jan 2023 20:07:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 212F527BBE9 for ; Sun, 29 Jan 2023 20:07:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMDxB-0006Jv-Hw; Sun, 29 Jan 2023 15:07:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMDx8-0006JQ-Fy for guix-patches@gnu.org; Sun, 29 Jan 2023 15:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMDx8-0004sM-7t for guix-patches@gnu.org; Sun, 29 Jan 2023 15:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMDx7-0000ki-Od for guix-patches@gnu.org; Sun, 29 Jan 2023 15:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61154] [PATCH] gnu: wpa-supplicant: Patch dbus policy. Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Jan 2023 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61154 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61154@debbugs.gnu.org Cc: Sergey Trofimov X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16750227882850 (code B ref -1); Sun, 29 Jan 2023 20:07:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2023 20:06:28 +0000 Received: from localhost ([127.0.0.1]:45448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMDwa-0000jt-2J for submit@debbugs.gnu.org; Sun, 29 Jan 2023 15:06:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:59796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMDwY-0000jm-OT for submit@debbugs.gnu.org; Sun, 29 Jan 2023 15:06:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMDwX-0006Fq-KQ for guix-patches@gnu.org; Sun, 29 Jan 2023 15:06:26 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMDwV-0004qE-Iv for guix-patches@gnu.org; Sun, 29 Jan 2023 15:06:25 -0500 Received: by mail-ej1-x636.google.com with SMTP id hx15so6990157ejc.11 for ; Sun, 29 Jan 2023 12:06:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=YCtKAlQTvS1b6LEs/8f5AE+XGqlzq0VlAjLX9LJUY6A=; b=gH6Mrr9zeHvGBHabOExgARQ/A90mS3Mk2VG8Ze7d3rMEh5WTTiu4XP3rtepMvwvDsn mEimx+dmqtfUhP6LkmYt6gxV4q7OUAo17V5buFj83utUXHKY8gwlhVpy5MRAz5cfkf37 H7sunAlJHnCHVGEBdUDUQ3EE1v/r/qCLqXODU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YCtKAlQTvS1b6LEs/8f5AE+XGqlzq0VlAjLX9LJUY6A=; b=5g6xmOE5lPH9umfPEOsS0QUw+oVNQYna9tiDTWbM0f9379XsGhf+PlkPtZ/4kU1oKC KHBe1F8siucqylIuj8zUAbv5oTdVCuO3MMSbIajsIJGRzzWJmDJTPHil8RYv5KXh844P pUupNGiG6yyjspqfJ8FNIrqFcXzFnAFlDq+X8fjrtdk7w9CHIA3+/CC62/7WYhIOvMFX 51XbvwpoytHiuI5Cn/KUCA2wwLh/MQt/BdZ0vIHjqv8MqmnmPSLXDebg0JRmJfHa8ka1 Yb1yXkmgj+onhLqthESkdpwIbYRWQF4iS2WvP7pCbfkOTHT4XAUuEVgX8DNBxbjE8EFy h/HA== X-Gm-Message-State: AO0yUKVjm5sh48fu8I94dh3kMTKvJSrJrwyrZC5nWzX9BgwzDH2GBFaX /L2s3yM0H4uSBBPGUkKUYpOfI7UdT3FyoX7i X-Google-Smtp-Source: AK7set8U3pyLqUR4yLto4s0uXdQ/f5tgOhvukXSG6RTlzrkC26/2emxyyA74HF2dN+eBVGxO9j4wUQ== X-Received: by 2002:a17:906:4c94:b0:884:9f42:1ec8 with SMTP id q20-20020a1709064c9400b008849f421ec8mr4917589eju.70.1675022780262; Sun, 29 Jan 2023 12:06:20 -0800 (PST) Received: from localhost ([77.64.255.85]) by smtp.gmail.com with ESMTPSA id a26-20020a170906685a00b008878909859bsm1128912ejs.152.2023.01.29.12.06.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Jan 2023 12:06:19 -0800 (PST) From: Sergey Trofimov Date: Sun, 29 Jan 2023 21:06:31 +0100 Message-Id: <20230129200631.13441-1-sarg@sarg.org.ru> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::636; envelope-from=sarg@sarg.org.ru; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This patch allows users in netdev group to control wpa-supplicant via D-Bus interface. --- gnu/packages/admin.scm | 3 +++ .../wpa-supplicant-dbus-group-policy.patch | 23 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 gnu/packages/patches/wpa-supplicant-dbus-group-policy.patch diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index 5cea17d562..b3383b4d86 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -2221,6 +2221,9 @@ (define-public wpa-supplicant (name "wpa-supplicant") (inputs (modify-inputs (package-inputs wpa-supplicant-minimal) (prepend dbus))) + (source (origin + (inherit (package-source wpa-supplicant-minimal)) + (patches (search-patches "wpa-supplicant-dbus-group-policy.patch")))) (arguments (substitute-keyword-arguments (package-arguments wpa-supplicant-minimal) ((#:phases phases) diff --git a/gnu/packages/patches/wpa-supplicant-dbus-group-policy.patch b/gnu/packages/patches/wpa-supplicant-dbus-group-policy.patch new file mode 100644 index 0000000000..95c18dac18 --- /dev/null +++ b/gnu/packages/patches/wpa-supplicant-dbus-group-policy.patch @@ -0,0 +1,23 @@ +Borrowed from debian, allows users in netdev group to control wpa-supplicant +via D-Bus. + +Description: Debian does not use pam_console but uses group membership + to control access to D-Bus. Activating both options in the conf file + makes it work on Debian and Ubuntu. +Author: Michael Biebl +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=15;bug=412179 +--- +--- a/wpa_supplicant/dbus/dbus-wpa_supplicant.conf ++++ b/wpa_supplicant/dbus/dbus-wpa_supplicant.conf +@@ -14,6 +14,11 @@ + + + ++ ++ ++ ++ ++ + + +