2012-01-04 09:33:27 -08:00
|
|
|
# nfc subsystem
|
|
|
|
type nfc, domain;
|
|
|
|
app_domain(nfc)
|
2014-02-24 07:48:03 -08:00
|
|
|
net_domain(nfc)
|
2014-01-10 23:05:25 -08:00
|
|
|
binder_service(nfc)
|
2013-10-23 10:12:55 -07:00
|
|
|
|
2014-09-25 15:13:41 -07:00
|
|
|
# Set NFC properties
|
|
|
|
unix_socket_connect(nfc, property, init)
|
|
|
|
allow nfc nfc_prop:property_service set;
|
|
|
|
|
2013-10-23 10:12:55 -07: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-05 15:52:02 -07:00
|
|
|
|
2014-12-22 17:32:44 -08:00
|
|
|
allow nfc drmserver_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow nfc mediaserver_service:service_manager find;
|
2015-01-15 13:58:34 -08:00
|
|
|
allow nfc nfc_service:service_manager { add find };
|
|
|
|
allow nfc radio_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow nfc surfaceflinger_service:service_manager find;
|
|
|
|
allow nfc system_server_service:service_manager find;
|
2014-12-16 15:45:26 -08:00
|
|
|
allow nfc tmp_system_server_service:service_manager find;
|
2015-03-03 11:20:15 -08:00
|
|
|
|
|
|
|
service_manager_local_audit_domain(nfc)
|
|
|
|
auditallow nfc {
|
|
|
|
tmp_system_server_service
|
|
|
|
-accessibility_service
|
|
|
|
-activity_service
|
|
|
|
-appops_service
|
|
|
|
-batterystats_service
|
|
|
|
-bluetooth_manager_service
|
|
|
|
-connectivity_service
|
|
|
|
-content_service
|
|
|
|
-display_service
|
|
|
|
-dropbox_service
|
|
|
|
-network_management_service
|
|
|
|
-power_service
|
2015-04-01 14:30:46 -07:00
|
|
|
-registry_service
|
2015-03-03 11:20:15 -08:00
|
|
|
-trust_service
|
|
|
|
-user_service
|
|
|
|
-vibrator_service
|
2015-04-02 02:16:42 -07:00
|
|
|
}:service_manager find;
|
|
|
|
|
|
|
|
# already open bugreport file descriptors may be shared with
|
|
|
|
# the nfc process, from a file in
|
|
|
|
# /data/data/com.android.shell/files/bugreports/bugreport-*.
|
|
|
|
allow nfc shell_data_file:file read;
|