d804a76d03
This reverts commit 3aa1c1725e
.
Reason for revert: Wifi services no longer plan to be a separate
APK/process for mainline. Will instead become a jar loaded from Apex.
Bug: 144722612
Test: Device boots up & connects to wifi networks
Change-Id: Ifa33dae971dccfd5d14991727e2f27d2398fdc74
42 lines
1.5 KiB
Text
42 lines
1.5 KiB
Text
# wificond
|
|
type wificond, domain;
|
|
type wificond_exec, system_file_type, exec_type, file_type;
|
|
|
|
binder_use(wificond)
|
|
binder_call(wificond, system_server)
|
|
|
|
add_service(wificond, wificond_service)
|
|
|
|
set_prop(wificond, exported_wifi_prop)
|
|
set_prop(wificond, wifi_prop)
|
|
set_prop(wificond, ctl_default_prop)
|
|
|
|
# create sockets to set interfaces up and down
|
|
allow wificond self:udp_socket create_socket_perms;
|
|
# setting interface state up/down is a privileged ioctl
|
|
allowxperm wificond self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR };
|
|
allow wificond self:global_capability_class_set { net_admin net_raw };
|
|
# allow wificond to speak to nl80211 in the kernel
|
|
allow wificond self:netlink_socket create_socket_perms_no_ioctl;
|
|
# newer kernels (e.g. 4.4 but not 4.1) have a new class for sockets
|
|
allow wificond self:netlink_generic_socket create_socket_perms_no_ioctl;
|
|
|
|
r_dir_file(wificond, proc_net_type)
|
|
|
|
# allow wificond to check permission for dumping logs
|
|
allow wificond permission_service:service_manager find;
|
|
|
|
# dumpstate support
|
|
allow wificond dumpstate:fd use;
|
|
allow wificond dumpstate:fifo_file write;
|
|
|
|
#### Offer the Wifi Keystore HwBinder service ###
|
|
hwbinder_use(wificond)
|
|
get_prop(wificond, hwservicemanager_prop)
|
|
typeattribute wificond wifi_keystore_service_server;
|
|
add_hwservice(wificond, system_wifi_keystore_hwservice)
|
|
|
|
# Allow keystore binder access to serve the HwBinder service.
|
|
allow wificond keystore_service:service_manager find;
|
|
allow wificond keystore:binder call;
|
|
allow wificond keystore:keystore_key get;
|