diff options
author | Florian Mayer <fmayer@google.com> | 2022-06-22 17:55:18 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-06-22 17:55:18 +0000 |
commit | e5f8cda1df69c5f9c429a7960e793ac24235dee9 (patch) | |
tree | 544f20f0af109cf7f7ad849de9aae07661937924 | |
parent | b0e8d3487597d77464edf4f837bb47a51c6aa005 (diff) | |
parent | 7a119c553c25de747e3d4cd5169f34f6f9f46eb3 (diff) | |
download | extras-e5f8cda1df69c5f9c429a7960e793ac24235dee9.tar.gz |
Merge "Allow to turn off MTE from userspace."
-rw-r--r-- | mtectrl/mtectrl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mtectrl/mtectrl.cc b/mtectrl/mtectrl.cc index 4e722407..118c71c7 100644 --- a/mtectrl/mtectrl.cc +++ b/mtectrl/mtectrl.cc @@ -39,6 +39,8 @@ int main(int argc, char** argv) { m.memtag_mode |= MISC_MEMTAG_MODE_MEMTAG_KERNEL; } else if (field == "memtag-kernel-once") { m.memtag_mode |= MISC_MEMTAG_MODE_MEMTAG_KERNEL_ONCE; + } else if (field == "memtag-off") { + m.memtag_mode |= MISC_MEMTAG_MODE_MEMTAG_OFF; } else if (field != "none") { LOG(ERROR) << "Unknown value for arm64.memtag.bootctl: " << field; return 1; |