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
This commit is contained in:
Prashant Malani 2016-10-19 09:54:20 -07:00
parent c86eb96f45
commit 2d9d3e6de3
6 changed files with 13 additions and 13 deletions

View file

@ -1,2 +0,0 @@
# may be started by init
init_daemon_domain(android_hardware_vibrator_1_0_service)

View file

@ -0,0 +1,2 @@
# may be started by init
init_daemon_domain(android_hardware_vibrator_service)

View file

@ -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

View file

@ -1,9 +0,0 @@
# 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;

View file

@ -0,0 +1,9 @@
# 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;

View file

@ -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.
#