diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2022-06-15 14:48:47 +0200 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2022-06-15 14:50:34 +0200 |
commit | 14709d27604a4dc34cf07e9ef5ccb579cf9d7192 (patch) | |
tree | 2821559070e2161ba3a1da6791dd17de49c781d1 | |
parent | 22a590d4a86da6b3cfdeb3cd8828c143bf8ab732 (diff) |
Configure wpa_supplicant.service to create control sockets owned by group netdev
Closes: #1012844
-rw-r--r-- | debian/patches/series | 1 | ||||
-rw-r--r-- | debian/patches/wpa_service_netdev.patch | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series index 54f8eca..56349c7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -8,3 +8,4 @@ manpage-replace-wheel-with-netdev.patch upstream-fixes/0001-nl80211-add-extra-ies-only-if-allowed-by-driver.patch upstream-fixes/0002-AP-guard-FT-SAE-code-with-CONFIG_IEEE80211R_AP.patch allow-legacy-renegotiation.patch +wpa_service_netdev.patch diff --git a/debian/patches/wpa_service_netdev.patch b/debian/patches/wpa_service_netdev.patch new file mode 100644 index 0000000..7c8f032 --- /dev/null +++ b/debian/patches/wpa_service_netdev.patch @@ -0,0 +1,26 @@ +From: Andrej Shadura <andrew.shadura@collabora.co.uk> +Date: Wed, 15 Jun 2022 14:47:05 +0200 +Subject: Configure wpa_supplicant.service to create control sockets owned by group netdev + +Bug-Debian: https://bugs.debian.org/1012844 +--- + wpa_supplicant/systemd/wpa_supplicant.service.in | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/wpa_supplicant/systemd/wpa_supplicant.service.in b/wpa_supplicant/systemd/wpa_supplicant.service.in +index 18cbc11..f02bc15 100644 +--- a/wpa_supplicant/systemd/wpa_supplicant.service.in ++++ b/wpa_supplicant/systemd/wpa_supplicant.service.in +@@ -8,8 +8,11 @@ IgnoreOnIsolate=true + [Service] + Type=dbus + BusName=fi.w1.wpa_supplicant1 +-ExecStart=@BINDIR@/wpa_supplicant -u -s -O /run/wpa_supplicant ++ExecStart=@BINDIR@/wpa_supplicant -u -s -O "DIR=/run/wpa_supplicant GROUP=netdev" + ExecReload=/bin/kill -HUP $MAINPID ++Group=netdev ++RuntimeDirectory=wpa_supplicant ++RuntimeDirectoryMode=0750 + + [Install] + WantedBy=multi-user.target |