Commit Graph

4 Commits

Author SHA1 Message Date
John Stultz e823b5b106 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>
2017-08-25 16:25:22 -07:00
Ningyuan Wang 50d87de678 Change wificond user from root to wifi
We don't need wificond to relaod driver/firmware anymore.
Wificond should run as user 'wifi' and group 'wifi'.
It also needs net_admin capability for requesting scans,
and net_raw for creating inet sockets for bringing up/down
interfaces.

Bug: 33239267
Test: compile, wifi works with toggling
Change-Id: Ic2749b5de2c775749008f57c9c0702d84b9cdcc8
2017-04-03 14:10:58 -07:00
Christopher Wiley 1f8dd4511d Control hostapd from IApInterface
Add AIDL interfaces, implementation, and tests to wificond.

Bug: 30040724
Test: unitests pass
Test: integration tests pass

Change-Id: I75339d64bf92941de26c7552b6b711cbea00eb80
2016-07-22 12:09:58 -07:00
Ningyuan Wang 997453174c Skeleton of wificond
This CL includes the following changes:
  A dummy main.cpp file with infinite loop
  Legal files
  Makefile for wificond
  Init file that starts up the deamen

BUG=28865186
TEST=compile
TEST=
  Add wificond to '/target/product/base.mk'
  Modify sepolicy files
  Flash image to phone
  Adb shell ps -A | grep 'wificond'

Change-Id: Ibb7181e091bf30044994fb0f189d00c239e892bf
2016-05-20 09:50:22 -07:00