Skip to content

Commit

Permalink
Don't install seccomp filter
Browse files Browse the repository at this point in the history
Signed-off-by: jizhenlo <[email protected]>
  • Loading branch information
ceiba1985 committed Jun 17, 2022
1 parent 26b9625 commit e30c8dc
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From cfdd1a053f07f6644b6cd61325b71b3d1fa911a4 Mon Sep 17 00:00:00 2001
From: jizhenlo <[email protected]>
Date: Sat, 18 Jun 2022 00:01:28 +0800
Subject: [PATCH] Don't install seccomp filter

Signed-off-by: jizhenlo <[email protected]>
---
core/jni/com_android_internal_os_Zygote.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp
index 9eede83e21e5..b6246e2d7bae 100644
--- a/core/jni/com_android_internal_os_Zygote.cpp
+++ b/core/jni/com_android_internal_os_Zygote.cpp
@@ -127,7 +127,7 @@ static jclass gZygoteClass;
static jmethodID gCallPostForkSystemServerHooks;
static jmethodID gCallPostForkChildHooks;

-static bool gIsSecurityEnforced = true;
+static bool gIsSecurityEnforced = false;

/**
* True if the app process is running in its mount namespace.
@@ -2282,7 +2282,7 @@ static void com_android_internal_os_Zygote_nativeInitNativeState(JNIEnv* env, jc

// security_getenforce is not allowed on app process. Initialize and cache
// the value before zygote forks.
- gIsSecurityEnforced = security_getenforce();
+ gIsSecurityEnforced = false;

selinux_android_seapp_context_init();

--
2.25.1

0 comments on commit e30c8dc

Please sign in to comment.