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

Commit be8b2e85 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "zygote: initialize selinux app contexts before fork()"

parents 282420fe 4667b994
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1634,6 +1634,8 @@ static void com_android_internal_os_Zygote_nativeSecurityInit(JNIEnv*, jclass) {
  // security_getenforce is not allowed on app process. Initialize and cache
  // the value before zygote forks.
  g_is_security_enforced = security_getenforce();

  selinux_android_seapp_context_init();
}

static void com_android_internal_os_Zygote_nativePreApplicationInit(JNIEnv*, jclass) {