2017-03-23 00:08:41 +01:00
|
|
|
# nfc subsystem
|
2020-02-11 15:43:05 +01:00
|
|
|
typeattribute nfc coredomain, mlstrustedsubject;
|
2016-12-10 05:14:31 +01:00
|
|
|
app_domain(nfc)
|
2017-03-23 00:08:41 +01:00
|
|
|
net_domain(nfc)
|
|
|
|
|
|
|
|
binder_service(nfc)
|
|
|
|
add_service(nfc, nfc_service)
|
|
|
|
|
|
|
|
hal_client_domain(nfc, hal_nfc)
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow nfc nfc_data_file:dir create_dir_perms;
|
|
|
|
allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
|
2020-07-08 11:09:49 +02:00
|
|
|
allow nfc nfc_logs_data_file:dir rw_dir_perms;
|
|
|
|
allow nfc nfc_logs_data_file:file create_file_perms;
|
2017-03-23 00:08:41 +01:00
|
|
|
|
|
|
|
# SoundPool loading and playback
|
|
|
|
allow nfc audioserver_service:service_manager find;
|
|
|
|
allow nfc drmserver_service:service_manager find;
|
|
|
|
allow nfc mediametrics_service:service_manager find;
|
|
|
|
allow nfc mediaextractor_service:service_manager find;
|
|
|
|
allow nfc mediaserver_service:service_manager find;
|
|
|
|
|
|
|
|
allow nfc radio_service:service_manager find;
|
|
|
|
allow nfc app_api_service:service_manager find;
|
|
|
|
allow nfc system_api_service:service_manager find;
|
2017-05-26 00:52:55 +02:00
|
|
|
allow nfc vr_manager_service:service_manager find;
|
2018-01-04 19:33:20 +01:00
|
|
|
allow nfc secure_element_service:service_manager find;
|
2017-03-23 00:08:41 +01:00
|
|
|
|
2017-07-31 18:55:30 +02:00
|
|
|
set_prop(nfc, nfc_prop);
|
|
|
|
|
2017-03-23 00:08:41 +01:00
|
|
|
# already open bugreport file descriptors may be shared with
|
|
|
|
# the nfc process, from a file in
|
|
|
|
# /data/data/com.android.shell/files/bugreports/bugreport-*.
|
|
|
|
allow nfc shell_data_file:file read;
|