2012-01-04 09:33:27 -08:00
|
|
|
# phone subsystem
|
2015-11-03 09:54:39 -08:00
|
|
|
type radio, domain, domain_deprecated, mlstrustedsubject;
|
2016-12-08 11:23:34 -08:00
|
|
|
|
2012-01-04 09:33:27 -08:00
|
|
|
net_domain(radio)
|
|
|
|
bluetooth_domain(radio)
|
2014-01-10 23:05:25 -08:00
|
|
|
binder_service(radio)
|
2012-01-04 09:33:27 -08:00
|
|
|
|
2017-03-24 16:07:35 -07:00
|
|
|
# TODO(b/36613472): Remove this once radio no longer communicates with rild over sockets.
|
2013-10-23 10:12:55 -07:00
|
|
|
# Talks to rild via the rild socket.
|
|
|
|
unix_socket_connect(radio, rild, rild)
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow radio radio_data_file:dir create_dir_perms;
|
|
|
|
allow radio radio_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
|
|
|
|
allow radio alarm_device:chr_file rw_file_perms;
|
|
|
|
|
2014-11-03 14:51:34 -08:00
|
|
|
allow radio net_data_file:dir search;
|
|
|
|
allow radio net_data_file:file r_file_perms;
|
|
|
|
|
2013-10-23 10:12:55 -07:00
|
|
|
# Property service
|
2015-05-04 18:22:45 -07:00
|
|
|
set_prop(radio, radio_prop)
|
|
|
|
set_prop(radio, net_radio_prop)
|
2013-10-23 10:12:55 -07:00
|
|
|
|
|
|
|
# ctl interface
|
2015-05-04 18:22:45 -07:00
|
|
|
set_prop(radio, ctl_rildaemon_prop)
|
2014-06-05 15:52:02 -07:00
|
|
|
|
2017-01-19 13:23:52 -08:00
|
|
|
add_service(radio, radio_service)
|
2015-09-09 10:48:04 -07:00
|
|
|
allow radio audioserver_service:service_manager find;
|
2016-06-09 12:47:05 -07:00
|
|
|
allow radio cameraserver_service:service_manager find;
|
2015-01-30 17:17:04 -08:00
|
|
|
allow radio drmserver_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow radio mediaserver_service:service_manager find;
|
2016-06-13 21:42:10 -07:00
|
|
|
allow radio nfc_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow radio surfaceflinger_service:service_manager find;
|
2015-04-02 16:50:08 -07:00
|
|
|
allow radio app_api_service:service_manager find;
|
|
|
|
allow radio system_api_service:service_manager find;
|
2016-12-01 11:36:44 -08:00
|
|
|
|
2016-12-07 17:43:46 -08:00
|
|
|
# Perform HwBinder IPC.
|
|
|
|
hwbinder_use(radio)
|
2017-03-16 18:48:40 -07:00
|
|
|
hal_client_domain(radio, hal_telephony)
|