Skip to content
Snippets Groups Projects
Commit 2d9d3e6d authored by Prashant Malani's avatar Prashant Malani
Browse files

Cleanup and renaming of vibrator HAL sepolicy

Renaming vibrator sepolicy to remove the version number.
Also moving the related binder_call() to maintain alphabetical order.

Bug: 32123421
Change-Id: I2bfa835085519ed10f61ddf74e7e668dd12bda04
Test: booted, and checked vibrate on keypress on bullhead
parent c86eb96f
No related branches found
No related tags found
No related merge requests found
# may be started by init
init_daemon_domain(android_hardware_vibrator_1_0_service)
init_daemon_domain(android_hardware_vibrator_service)
......@@ -222,7 +222,7 @@
/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
/system/bin/hw/android.hardware.vibrator@1.0-service u:object_r:android_hardware_vibrator_1_0_service_exec:s0
/system/bin/hw/android.hardware.vibrator@1.0-service u:object_r:android_hardware_vibrator_service_exec:s0
#############################
# Vendor files
......
# vibrator subsystem
type android_hardware_vibrator_1_0_service, domain;
type android_hardware_vibrator_1_0_service_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(android_hardware_vibrator_1_0_service)
# vibrator sysfs rw access
allow android_hardware_vibrator_1_0_service sysfs_vibrator:file rw_file_perms;
# vibrator subsystem
type android_hardware_vibrator_service, domain;
type android_hardware_vibrator_service_exec, exec_type, file_type;
# hwbinder access
hwbinder_use(android_hardware_vibrator_service)
# vibrator sysfs rw access
allow android_hardware_vibrator_service sysfs_vibrator:file rw_file_perms;
......@@ -147,6 +147,7 @@ allow system_server surfaceflinger:unix_stream_socket { read write setopt };
# Perform Binder IPC.
binder_use(system_server)
binder_call(system_server, android_hardware_vibrator_service)
binder_call(system_server, binderservicedomain)
binder_call(system_server, gatekeeperd)
binder_call(system_server, fingerprintd)
......@@ -155,7 +156,6 @@ binder_call(system_server, dumpstate)
binder_call(system_server, netd)
binder_call(system_server, wificond)
binder_service(system_server)
binder_call(system_server, android_hardware_vibrator_1_0_service)
# Ask debuggerd to dump backtraces for native stacks of interest.
#
......
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