Remove sepolicy for vibrator manager service

Bug: 260090235
Test: check avc error
Change-Id: I2cb9f9efe849ae6e7fb9b1b5aba2f92a3346af6d
Signed-off-by: Chase Wu <chasewu@google.com>
This commit is contained in:
Chase Wu 2022-12-02 01:07:16 +08:00
parent 3c82f575b9
commit c02424796d
5 changed files with 3 additions and 30 deletions

View file

@ -14,5 +14,4 @@
# Haptics # Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private u:object_r:hal_vibrator_default_exec:s0 /vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private u:object_r:hal_vibrator_default_exec:s0
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-stereo-private u:object_r:hal_vibrator_stereo_exec:s0
/dev/gpiochip44 u:object_r:vibrator_device:s0 /dev/gpiochip44 u:object_r:vibrator_device:s0

View file

@ -1,5 +1,3 @@
# Allow vibrator HAL to communicate with another service # For gpio dev node
binder_call(hal_vibrator_default, hal_vibrator_stereo); vndbinder_use(hal_vibrator_default);
allow hal_vibrator_default vibrator_device:chr_file rw_file_perms;
# Allow vibrator HAL to "add" the hal_vibrator_vndservice service type
add_service(hal_vibrator_default, hal_vibrator_vndservice);

View file

@ -1,21 +0,0 @@
# From system sepilicy
type hal_vibrator_stereo, domain;
hal_server_domain(hal_vibrator_stereo, hal_vibrator)
type hal_vibrator_stereo_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_vibrator_stereo)
# From project
get_prop(hal_vibrator_stereo, vendor_vibrator_prop);
get_prop(hal_vibrator_stereo, boot_status_prop);
# Allow vibrator HAL's default implementation to use vendor-binder service
vndbinder_use(hal_vibrator_stereo);
# For gpio dev node
allow hal_vibrator_stereo vibrator_device:chr_file rw_file_perms;
# For vibrator HAL's communication with other service
binder_call(hal_vibrator_stereo, hal_vibrator_default);
allow hal_vibrator_stereo hal_vibrator_vndservice:service_manager find;

View file

@ -1 +0,0 @@
type hal_vibrator_vndservice, vndservice_manager_type;

View file

@ -1,2 +0,0 @@
android.hardware.vibrator.IVibratorSync/default u:object_r:hal_vibrator_vndservice:s0
android.hardware.vibrator.IVibratorSync/dual u:object_r:hal_vibrator_vndservice:s0