1# nfc subsystem
2type nfc, domain;
3app_domain(nfc)
4net_domain(nfc)
5binder_service(nfc)
6
7# Set NFC properties
8unix_socket_connect(nfc, property, init)
9allow nfc nfc_prop:property_service set;
10
11# NFC device access.
12allow nfc nfc_device:chr_file rw_file_perms;
13
14# Data file accesses.
15allow nfc nfc_data_file:dir create_dir_perms;
16allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
17
18allow nfc sysfs_nfc_power_writable:file rw_file_perms;
19allow nfc sysfs:file write;
20
21allow nfc nfc_service:service_manager add;
22