From c79737623035ab3fa89f20a196eb5dab25907f7c Mon Sep 17 00:00:00 2001 From: snake-4 <18491360+snake-4@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:52:12 +0200 Subject: [PATCH] Update main.cpp --- module/jni/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/jni/main.cpp b/module/jni/main.cpp index 671a744..2be141d 100644 --- a/module/jni/main.cpp +++ b/module/jni/main.cpp @@ -65,7 +65,7 @@ public: * postAppSpecialize is after seccomp setup. * So we unshare here to create an app mount namespace. */ - if (unshare(CLONE_NEWNS) == -1) + if (old_unshare(CLONE_NEWNS) == -1) { LOGE("unshare(CLONE_NEWNS) returned -1: %d (%s)", errno, strerror(errno)); return;