Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't install seccomp filter #1471

Open
wants to merge 1 commit into
base: celadon/r/mr0/stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading