2012-01-04 18:33:27 +01:00
|
|
|
# nfc subsystem
|
2015-11-03 18:54:39 +01:00
|
|
|
type nfc, domain, domain_deprecated;
|
2012-01-04 18:33:27 +01:00
|
|
|
app_domain(nfc)
|
2014-02-24 16:48:03 +01:00
|
|
|
net_domain(nfc)
|
2014-01-11 08:05:25 +01:00
|
|
|
binder_service(nfc)
|
2013-10-23 19:12:55 +02:00
|
|
|
|
2016-07-08 13:49:09 +02:00
|
|
|
# hwbinder access
|
|
|
|
hwbinder_use(nfc)
|
|
|
|
|
2014-09-26 00:13:41 +02:00
|
|
|
# Set NFC properties
|
2015-05-05 03:22:45 +02:00
|
|
|
set_prop(nfc, nfc_prop)
|
2014-09-26 00:13:41 +02:00
|
|
|
|
2013-10-23 19:12:55 +02:00
|
|
|
# NFC device access.
|
|
|
|
allow nfc nfc_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow nfc nfc_data_file:dir create_dir_perms;
|
|
|
|
allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
|
2016-02-06 00:04:31 +01:00
|
|
|
# SoundPool loading and playback
|
|
|
|
allow nfc audioserver_service:service_manager find;
|
2016-07-13 19:15:37 +02:00
|
|
|
allow nfc drmserver_service:service_manager find;
|
2016-02-03 01:10:37 +01:00
|
|
|
allow nfc mediacodec_service:service_manager find;
|
2016-07-13 19:15:37 +02:00
|
|
|
allow nfc mediaextractor_service:service_manager find;
|
|
|
|
allow nfc mediaserver_service:service_manager find;
|
2016-02-06 00:04:31 +01:00
|
|
|
|
2015-01-15 22:58:34 +01:00
|
|
|
allow nfc nfc_service:service_manager { add find };
|
|
|
|
allow nfc radio_service:service_manager find;
|
2014-12-12 01:01:27 +01:00
|
|
|
allow nfc surfaceflinger_service:service_manager find;
|
2015-04-03 01:50:08 +02:00
|
|
|
allow nfc app_api_service:service_manager find;
|
|
|
|
allow nfc system_api_service:service_manager find;
|
2015-03-03 20:20:15 +01:00
|
|
|
|
2015-04-02 11:16:42 +02: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;
|
2016-09-26 09:06:43 +02:00
|
|
|
|
|
|
|
# allow NFC process to call into the NFC HAL
|
|
|
|
binder_call(nfc, android_hardware_nfc_1_0_service)
|