2012-01-04 18:33:27 +01:00
|
|
|
# nfc subsystem
|
|
|
|
type nfc, domain;
|
|
|
|
app_domain(nfc)
|
2014-02-24 16:48:03 +01:00
|
|
|
net_domain(nfc)
|
2014-01-11 08:05:25 +01:00
|
|
|
binder_service(nfc)
|
2013-10-23 19:12:55 +02:00
|
|
|
|
2014-09-26 00:13:41 +02:00
|
|
|
# Set NFC properties
|
|
|
|
unix_socket_connect(nfc, property, init)
|
|
|
|
allow nfc nfc_prop:property_service set;
|
|
|
|
|
2013-10-23 19:12:55 +02:00
|
|
|
# NFC device access.
|
|
|
|
allow nfc nfc_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Data file accesses.
|
|
|
|
allow nfc nfc_data_file:dir create_dir_perms;
|
|
|
|
allow nfc nfc_data_file:notdevfile_class_set create_file_perms;
|
|
|
|
|
|
|
|
allow nfc sysfs_nfc_power_writable:file rw_file_perms;
|
|
|
|
allow nfc sysfs:file write;
|
2014-06-06 00:52:02 +02:00
|
|
|
|
2014-12-12 01:01:27 +01:00
|
|
|
allow nfc mediaserver_service:service_manager find;
|
2014-06-06 00:52:02 +02:00
|
|
|
allow nfc nfc_service:service_manager add;
|
2014-12-12 01:01:27 +01:00
|
|
|
allow nfc surfaceflinger_service:service_manager find;
|
|
|
|
allow nfc system_server_service:service_manager find;
|