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

Commit b9f2f130 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "[GWP-ASan] Maybe initialise GWP-ASan from Zygote." am: bd375838 am: ea611103

Change-Id: Ifcfbb5db2271cdb5309bc8dce311753f8fbbc376
parents 1f5ff848 ea611103
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -579,6 +579,12 @@ static void PreApplicationInit() {

  // Set the jemalloc decay time to 1.
  mallopt(M_DECAY_TIME, 1);

  // Maybe initialize GWP-ASan here. Must be called after
  // mallopt(M_SET_ZYGOTE_CHILD).
  bool ForceEnableGwpAsan = false;
  android_mallopt(M_INITIALIZE_GWP_ASAN, &ForceEnableGwpAsan,
                  sizeof(ForceEnableGwpAsan));
}

static void SetUpSeccompFilter(uid_t uid, bool is_child_zygote) {