summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stultz2017-08-22 23:39:53 -0500
committerJohn Stultz2017-08-25 18:25:22 -0500
commite823b5b106df057990cbc84255ae52919032221d (patch)
tree5655d2ff3cfa188c85fb04e53b0fe8ba040eed61
parent5bb4bd8518bb97e1f5676fd4270755fef9673c72 (diff)
downloadsystem-connectivity-wificond-e823b5b106df057990cbc84255ae52919032221d.tar.gz
system-connectivity-wificond-e823b5b106df057990cbc84255ae52919032221d.tar.xz
system-connectivity-wificond-e823b5b106df057990cbc84255ae52919032221d.zip
wificond.rc: Set CAP_NET_RAW and CAP_NET_ADMIN explicitly rather then implictly via group
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