trusty: keymint/gatekeeper: Pass device name from init scripts

If the ro.hardware.trusty_ipc_dev.gatekeeper (respectively .keymint) property is set, pass it as the device name to the gatekeeper (respectively keymint) HALs.

Test: "setprop ro.hardware.trusty_ipc_dev VSOCK:2048:1" and restart HALs
Change-Id: I0947e532ac70ce1821cec49897f21ca10e1af03e
This commit is contained in:
Arve Hjønnevåg 2023-10-09 15:57:26 -07:00 committed by Armelle Laine
parent e57d3f2110
commit ced57af116
3 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,5 @@
service vendor.gatekeeper_default /vendor/bin/hw/android.hardware.gatekeeper-service.trusty
service vendor.gatekeeper_default /vendor/bin/hw/android.hardware.gatekeeper-service.trusty \
--dev ${ro.hardware.trusty_ipc_dev.gatekeeper:-/dev/trusty-ipc-dev0}
class hal
user system
group system

View file

@ -1,4 +1,5 @@
service vendor.keymint-trusty /vendor/bin/hw/android.hardware.security.keymint-service.trusty
service vendor.keymint-trusty /vendor/bin/hw/android.hardware.security.keymint-service.trusty \
--dev ${ro.hardware.trusty_ipc_dev.keymint:-/dev/trusty-ipc-dev0}
class early_hal
user nobody
group drmrpc

View file

@ -1,7 +1,8 @@
service vendor.keymint.rust-trusty /vendor/bin/hw/android.hardware.security.keymint-service.rust.trusty
service vendor.keymint.rust-trusty /vendor/bin/hw/android.hardware.security.keymint-service.rust.trusty \
--dev ${ro.hardware.trusty_ipc_dev.keymint:-/dev/trusty-ipc-dev0}
class early_hal
user nobody
group drmrpc
# The keymint service is not allowed to restart.
# If it crashes, a device restart is required.
oneshot
oneshot