Skip to content
Snippets Groups Projects
Commit d131f945 authored by Yifan Hong's avatar Yifan Hong
Browse files

Allow hal_sensors to use ashmem from android.hidl.allocator

android.framework.sensorservice@1.0 pass a file
descriptor from hidl_memory into
android.hardware.sensors@1.0, hence requiring the latter
to use the file descriptor.

Test: VtsHalSensorManagerV1_0TargetTest under selinux
enforcing mode
Bug: 35219747
Change-Id: I0185c8af0714776842c90ebb687b684324b55cd8
parent fbccda34
No related branches found
No related tags found
No related merge requests found
......@@ -3,3 +3,7 @@ binder_call(hal_sensors_client, hal_sensors_server)
# Allow sensor hals to access ashmem memory allocated by apps
allow hal_sensors { appdomain -isolated_app }:fd use;
# Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
# fd is passed in from framework sensorservice HAL.
allow hal_sensors hal_allocator:fd use;
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