[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: wpa-supplicant: Add netdev group dbus policy
From: |
guix-commits |
Subject: |
branch master updated: gnu: wpa-supplicant: Add netdev group dbus policy. |
Date: |
Mon, 13 Feb 2023 07:52:04 -0500 |
This is an automated email from the git hooks/post-receive script.
abcdw pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 8d8b9a4c0c gnu: wpa-supplicant: Add netdev group dbus policy.
8d8b9a4c0c is described below
commit 8d8b9a4c0c6273ce1680233ae234294f511e81b6
Author: Sergey Trofimov <sarg@sarg.org.ru>
AuthorDate: Sun Jan 29 21:06:31 2023 +0100
gnu: wpa-supplicant: Add netdev group dbus policy.
The patch allows users in netdev group to control wpa-supplicant via D-Bus
interface.
* gnu/packages/admin.scm (wpa-supplicant)[source]: Add dbus policy patch.
* gnu/packages/patches/wpa-supplicant-dbus-group-policy.patch: New file.
Signed-off-by: Andrew Tropin <andrew@trop.in>
---
gnu/packages/admin.scm | 4 ++++
.../patches/wpa-supplicant-dbus-group-policy.patch | 23 ++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 3d0886aba8..847a252364 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -2222,6 +2222,10 @@ command.")
(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 <biebl@debian.org>
+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 @@
+ <allow send_interface="fi.w1.wpa_supplicant1"/>
+ <allow receive_sender="fi.w1.wpa_supplicant1"
receive_type="signal"/>
+ </policy>
++ <policy group="netdev">
++ <allow send_destination="fi.w1.wpa_supplicant1"/>
++ <allow send_interface="fi.w1.wpa_supplicant1"/>
++ <allow receive_sender="fi.w1.wpa_supplicant1"
receive_type="signal"/>
++ </policy>
+ <policy context="default">
+ <deny own="fi.epitest.hostap.WPASupplicant"/>
+ <deny send_destination="fi.epitest.hostap.WPASupplicant"/>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: wpa-supplicant: Add netdev group dbus policy.,
guix-commits <=