File: wpa_service_netdev.patch

package info (click to toggle)
wpa 2%3A2.10-12%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,564 kB
  • sloc: ansic: 394,673; cpp: 5,200; python: 4,144; makefile: 3,591; sh: 1,468; php: 966; xml: 54; perl: 48
file content (26 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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