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 unix_socket_connect(nfc, property, init) 9 allow nfc nfc_prop:property_service set; 10 11 # NFC device access. 12 allow nfc nfc_device:chr_file rw_file_perms; 13 14 # Data file accesses. 15 allow nfc nfc_data_file:dir create_dir_perms; 16 allow nfc nfc_data_file:notdevfile_class_set create_file_perms; 17 18 allow nfc sysfs_nfc_power_writable:file rw_file_perms; 19 allow nfc sysfs:file write; 20 21 allow nfc nfc_service:service_manager add; 22