1 # nfc subsystem 2 type nfc, domain; 3 app_domain(nfc) 4 net_domain(nfc) 5 binder_service(nfc) 6 7 # Set NFC properties 8 set_prop(nfc, nfc_prop) 9 10 # NFC device access. 11 allow nfc nfc_device:chr_file rw_file_perms; 12 13 # Data file accesses. 14 allow nfc nfc_data_file:dir create_dir_perms; 15 allow nfc nfc_data_file:notdevfile_class_set create_file_perms; 16 17 allow nfc sysfs_nfc_power_writable:file rw_file_perms; 18 allow nfc sysfs:file write; 19 20 allow nfc drmserver_service:service_manager find; 21 allow nfc mediaserver_service:service_manager find; 22 allow nfc nfc_service:service_manager { add find }; 23 allow nfc radio_service:service_manager find; 24 allow nfc surfaceflinger_service:service_manager find; 25 allow nfc app_api_service:service_manager find; 26 allow nfc system_api_service:service_manager find; 27 28 # already open bugreport file descriptors may be shared with 29 # the nfc process, from a file in 30 # /data/data/com.android.shell/files/bugreports/bugreport-*. 31 allow nfc shell_data_file:file read; 32