Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d9f5fc6 authored by Evgenii Stepanov's avatar Evgenii Stepanov
Browse files

Rename sysprop for MTE mode in system_server.

Move the system property that controls MTE mode in system_server out of
arm64.memtag.process namespace. Process sysprops affect the MTE mode of
any process with the given name; using such property in a product means
that any process or test unfortunately named "system_server" would be
affected.

Bug: 280343521
Test: debuggerd `pidof system_server` | head -30 | grep tagged_addr
      affected by the new property
      not affected by the old property
Change-Id: I1b303803cd470808d493f8fa20a69e84b3906afc
parent bb1e865a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -771,7 +771,7 @@ public class ZygoteInit {
            Zygote.applyInvokeWithSystemProperty(parsedArgs);

            if (Zygote.nativeSupportsMemoryTagging()) {
                String mode = SystemProperties.get("arm64.memtag.process.system_server", "");
                String mode = SystemProperties.get("persist.arm64.memtag.system_server", "");
                if (mode.isEmpty()) {
                  /* The system server has ASYNC MTE by default, in order to allow
                   * system services to specify their own MTE level later, as you