[PATCH v2] tests: Fix Permission denied on Fedora
Masashi Honma
masashi.honma at gmail.com
Sat Dec 30 12:35:28 PST 2017
On Fedora 26, start.sh fails with these error messages.
Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0 error: Permission denied
Failed to connect to wpa_supplicant global interface: /tmp/wpas-wlan0 error: Permission denied
...
This is because Fedora 26 uses "wheel" group as administrative group.
Signed-off-by: Masashi Honma <masashi.honma at gmail.com>
---
tests/hwsim/start.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/hwsim/start.sh b/tests/hwsim/start.sh
index fe46212..527ee22 100755
--- a/tests/hwsim/start.sh
+++ b/tests/hwsim/start.sh
@@ -58,6 +58,8 @@ fi
if groups | tr ' ' "\n" | grep -q ^admin$; then
GROUP=admin
+elif groups | tr ' ' "\n" | grep -q ^wheel$; then
+ GROUP=wheel
else
GROUP=adm
fi
--
2.7.4
More information about the Hostap
mailing list