device-sepolicy: Add sepolicy for vibrator hal am: b5eec482fd

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx-sepolicy/+/19981337

Change-Id: I379f4a0ee8e457202e70ba5cadd4a6e97c7b2e8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Chris Paulo
2022-11-16 20:52:07 +00:00
committed by Automerger Merge Worker
4 changed files with 12 additions and 0 deletions

View File

@@ -15,3 +15,6 @@
/dev/socket/wifihal(/.*)? u:object_r:vendor_wifihal_socket:s0 /dev/socket/wifihal(/.*)? u:object_r:vendor_wifihal_socket:s0
/vendor/bin/loc_launcher u:object_r:vendor_location_exec:s0 /vendor/bin/loc_launcher u:object_r:vendor_location_exec:s0
/vendor/bin/lowi-server u:object_r:lowi_server_exec:s0 /vendor/bin/lowi-server u:object_r:lowi_server_exec:s0
# Haptics
/vendor/bin/hw/android\.hardware\.vibrator-service\.cs40l26-private-lynx u:object_r:hal_vibrator_default_exec:s0

3
vendor/hal_vibrator_default.te vendored Normal file
View File

@@ -0,0 +1,3 @@
# Allow Vibrator HAL to communicate with daemon via socket
allow hal_vibrator_default chre:unix_stream_socket connectto;
allow hal_vibrator_default chre_socket:sock_file write;

2
vendor/property_contexts vendored Normal file
View File

@@ -0,0 +1,2 @@
# Haptics
persist.vendor.vibrator.hal. u:object_r:vendor_vibrator_prop:s0

View File

@@ -1 +1,5 @@
# Camera
set_prop(vendor_init, vendor_camera_prop) set_prop(vendor_init, vendor_camera_prop)
# Haptics
get_prop(vendor_init, adaptive_haptics_prop)