Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 1 | # nfc subsystem |
| 2 | type nfc, domain; |
| 3 | app_domain(nfc) |
Stephen Smalley | 85708ec | 2014-02-24 10:48:03 -0500 | [diff] [blame] | 4 | net_domain(nfc) |
Nick Kralevich | 2e7a301 | 2014-01-10 23:05:25 -0800 | [diff] [blame] | 5 | binder_service(nfc) |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 6 | |
Martijn Coenen | 05383eb | 2014-09-25 15:13:41 -0700 | [diff] [blame] | 7 | # Set NFC properties |
| 8 | unix_socket_connect(nfc, property, init) |
| 9 | allow nfc nfc_prop:property_service set; |
| 10 | |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame] | 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; |
Riley Spahn | f90c41f | 2014-06-05 15:52:02 -0700 | [diff] [blame] | 20 | |
| 21 | allow nfc nfc_service:service_manager add; |