diff options
author | Florian Mayer <fmayer@google.com> | 2022-10-05 01:19:22 +0000 |
---|---|---|
committer | Florian Mayer <fmayer@google.com> | 2022-10-05 01:19:24 +0000 |
commit | 8e6a8115bf2536ae98a12efc3ccafaeac7ba6a4a (patch) | |
tree | bc4fc2e3a479087fa3992e026e2d511ca9c324a4 /mtectrl | |
parent | 9680c63e5e0d2f0882997c23bf12fbb1290429dc (diff) | |
download | extras-8e6a8115bf2536ae98a12efc3ccafaeac7ba6a4a.tar.gz |
[MTE] only read memtag state on devices that support it
Bug: 250762232
Change-Id: I06c80878fc34b8227b80641cad7d7951aa6a7de3
Diffstat (limited to 'mtectrl')
-rw-r--r-- | mtectrl/mtectrl.rc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mtectrl/mtectrl.rc b/mtectrl/mtectrl.rc index 7dfef007..69f4586d 100644 --- a/mtectrl/mtectrl.rc +++ b/mtectrl/mtectrl.rc @@ -18,5 +18,5 @@ on property:arm64.memtag.bootctl=* on property:persist.device_config.memory_safety_native.bootloader_override=* exec -- /system/bin/mtectrl -s arm64.memtag.bootctl ${arm64.memtag.bootctl:-none} ${persist.device_config.memory_safety_native.bootloader_override:-default} -on init +on init && property:ro.arm64.memtag.bootctl_supported=1 exec -- /system/bin/mtectrl -s arm64.memtag.bootctl |