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

Commit 7d23ea15 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

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

Change-Id: I9aa4f5bba27d2017b16df76dd7b6412b13fb980d
parents 67571323 b9f2f130
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -611,6 +611,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) {