Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 1 | # nfc subsystem |
| 2 | type nfc, domain; |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame^] | 3 | permissive nfc; |
Stephen Smalley | 2dd4e51 | 2012-01-04 12:33:27 -0500 | [diff] [blame] | 4 | app_domain(nfc) |
Stephen Smalley | 5637099 | 2013-10-23 13:12:55 -0400 | [diff] [blame^] | 5 | |
| 6 | # NFC device access. |
| 7 | allow nfc nfc_device:chr_file rw_file_perms; |
| 8 | |
| 9 | # Data file accesses. |
| 10 | allow nfc nfc_data_file:dir create_dir_perms; |
| 11 | allow nfc nfc_data_file:notdevfile_class_set create_file_perms; |
| 12 | |
| 13 | allow nfc sysfs_nfc_power_writable:file rw_file_perms; |
| 14 | allow nfc sysfs:file write; |