hostapd: Remove unnecessary GID.
The 'net_raw' GID is an Android addition that does not exist
upstream. Moreover, 'hostapd' is already getting CAP_NET_RAW as a file
capability in
https://cs.corp.google.com/android/system/core/libcutils/fs_config.c?l=161.
Not only that, but 'hostapd' needs both CAP_NET_ADMIN *and*
CAP_NET_RAW, and the .rc file was only granting 'net_raw'. Remove
'net_raw' and just use file capabilities. This will allow us to drop
those kernel patches.
Bug: 33938230
Test: 'start hostapd', 'cat /proc/`pgrep hostapd`/status | grep Cap'.
Test: "CapPrm", "CapEff" lines show correct mask: 0000000000003000.
Change-Id: I19a3b28993abc9588c2269a513e78aa565a25ece
diff --git a/hostapd/hostapd.android.rc b/hostapd/hostapd.android.rc
index eee4b53..0ae27ca 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
+ group wifi
writepid /data/misc/wifi/hostapd.pid
disabled
oneshot