summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stultz2017-08-22 23:39:53 -0500
committerPraneeth Bajjuri2018-04-22 02:39:34 -0500
commit309d5db54abc76c53770f3e3307dadeb666e1344 (patch)
tree018afa0f7a31825567e40331fbde96f59099a695
parentc8bca5f75eb28620108278b1cf02c744588e0073 (diff)
downloadsystem-connectivity-wificond-d-oreo-mr1-core-release.tar.gz
system-connectivity-wificond-d-oreo-mr1-core-release.tar.xz
system-connectivity-wificond-d-oreo-mr1-core-release.zip
wificond.rc: Set CAP_NET_RAW and CAP_NET_ADMIN explicitly rather then implictly via groupd-oreo-mr1-core-release
Rather then depending on the ANDROID_PARANOID_NETWORKING hack, which allows processes in group net_raw and net_admin to implicitly be granted CAP_NET_RAW and CAP_NET_ADMIN, set the capabilities explictly. This allows wificond to function on mainline based kernels that do not enable ANDROID_PARANOID_NETWORKING. Bug: 65022091 Change-Id: Ia44bf3192ab48944e7d423635a06650214d22b27 Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--wificond.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/wificond.rc b/wificond.rc
index 3cc72e6..407fcca 100644
--- a/wificond.rc
+++ b/wificond.rc
@@ -2,3 +2,4 @@ service wificond /system/bin/wificond
2 class main 2 class main
3 user wifi 3 user wifi
4 group wifi net_raw net_admin 4 group wifi net_raw net_admin
5 capabilities NET_RAW NET_ADMIN