Skip to content
Snippets Groups Projects
Commit 377dec47 authored by Iliyan Malchev's avatar Iliyan Malchev Committed by android-build-merger
Browse files

add policy for android.hardware.nfc@1.0-service am: b8df90a2 am: 13142e7b am: bbcfa6bb

am: a9123b7a

Change-Id: Idca8b217a18122d9cd1721c3f7d27c7cfb2d1a82
parents 6577128b a9123b7a
No related branches found
No related tags found
No related merge requests found
# nfc subsystem
type android_hardware_nfc_1_0_service, domain;
type android_hardware_nfc_1_0_service_exec, exec_type, file_type;
# may be started by init
init_daemon_domain(android_hardware_nfc_1_0_service)
# hwbinder access
hwbinder_use(android_hardware_nfc_1_0_service)
# call into NFC process (callbacks)
binder_call(android_hardware_nfc_1_0_service, nfc)
# Set NFC properties (used by bcm2079x HAL).
set_prop(android_hardware_nfc_1_0_service, nfc_prop)
# NFC device access.
allow android_hardware_nfc_1_0_service nfc_device:chr_file rw_file_perms;
# Data file accesses.
allow android_hardware_nfc_1_0_service nfc_data_file:dir create_dir_perms;
allow android_hardware_nfc_1_0_service nfc_data_file:notdevfile_class_set create_file_perms;
......@@ -218,6 +218,7 @@
/system/bin/hw/wifi_hal_legacy u:object_r:wifi_hal_legacy_exec:s0
/system/fake-lib(64)?/libart.* u:object_r:libart_file:s0
/system/lib(64)?/libart.* u:object_r:libart_file:s0
/system/bin/hw/android.hardware.nfc@1.0-service u:object_r:android_hardware_nfc_1_0_service_exec:s0
#############################
# Vendor files
......
......@@ -17,12 +17,6 @@ allow nfc nfc_device:chr_file rw_file_perms;
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;
# TODO: added to match above sysfs rule. Remove me?
allow nfc sysfs_usb:file write;
# SoundPool loading and playback
allow nfc audioserver_service:service_manager find;
allow nfc drmserver_service:service_manager find;
......@@ -40,3 +34,6 @@ allow nfc system_api_service:service_manager find;
# the nfc process, from a file in
# /data/data/com.android.shell/files/bugreports/bugreport-*.
allow nfc shell_data_file:file read;
# allow NFC process to call into the NFC HAL
binder_call(nfc, android_hardware_nfc_1_0_service)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment