1# nfc subsystem 2type nfc, domain; 3app_domain(nfc) 4net_domain(nfc) 5binder_service(nfc) 6 7# Set NFC properties 8set_prop(nfc, nfc_prop) 9 10# NFC device access. 11allow nfc nfc_device:chr_file rw_file_perms; 12 13# Data file accesses. 14allow nfc nfc_data_file:dir create_dir_perms; 15allow nfc nfc_data_file:notdevfile_class_set create_file_perms; 16 17allow nfc sysfs_nfc_power_writable:file rw_file_perms; 18allow nfc sysfs:file write; 19 20allow nfc drmserver_service:service_manager find; 21allow nfc mediaserver_service:service_manager find; 22allow nfc nfc_service:service_manager { add find }; 23allow nfc radio_service:service_manager find; 24allow nfc surfaceflinger_service:service_manager find; 25allow nfc app_api_service:service_manager find; 26allow 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-*. 31allow nfc shell_data_file:file read; 32