blob: 407a1c317a0840cae7dc244cfb785cf10557f645 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# nfc subsystem
2type nfc, domain;
3app_domain(nfc)
Stephen Smalley85708ec2014-02-24 10:48:03 -05004net_domain(nfc)
Nick Kralevich2e7a3012014-01-10 23:05:25 -08005binder_service(nfc)
Stephen Smalley56370992013-10-23 13:12:55 -04006
Martijn Coenen05383eb2014-09-25 15:13:41 -07007# Set NFC properties
8unix_socket_connect(nfc, property, init)
9allow nfc nfc_prop:property_service set;
10
Stephen Smalley56370992013-10-23 13:12:55 -040011# 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;
Riley Spahnf90c41f2014-06-05 15:52:02 -070020
21allow nfc nfc_service:service_manager add;