platform_system_sepolicy/public/hal_sensors.te
Yifan Hong d131f945e6 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
2017-04-04 13:49:20 -07:00

9 lines
379 B
Text

# HwBinder IPC from client to server
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;