Allow hostapd to open UDP sockets
Some Android kernels have an extra patch to disallow calls like
socket(PF_INET, SOCK_DGRAM, 0)
unless the calling process is in one of a few special supplementary
groups that have been specially whitelisted for priviledged network
related operations. See the discussion at:
http://elinux.org/Android_Security#Paranoid_network-ing
Bug: None
Test: wificond integration tests pass on aosp/master again now that
hostapd can be started as a service again.
Change-Id: I45981873cb1728154ade4357ef5576228ca716d1
diff --git a/hostapd/hostapd.android.rc b/hostapd/hostapd.android.rc
index 83e8d87..eee4b53 100644
--- a/hostapd/hostapd.android.rc
+++ b/hostapd/hostapd.android.rc
@@ -14,7 +14,7 @@
/data/misc/wifi/hostapd.conf
class main
user wifi
+ group wifi net_raw
writepid /data/misc/wifi/hostapd.pid
- group wifi
disabled
oneshot