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>
This commit is contained in:
John Stultz 2017-08-22 21:39:53 -07:00
parent 5bb4bd8518
commit e823b5b106
1 changed files with 1 additions and 0 deletions

View File

@ -2,3 +2,4 @@ service wificond /system/bin/wificond
class main
user wifi
group wifi net_raw net_admin
capabilities NET_RAW NET_ADMIN