From 4fb539c11077dc2482c7cd461facd12b6d4f8e89 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Fri, 6 Dec 2024 13:42:03 +0800 Subject: [PATCH] core: use a new tmpfs as worker --- native/src/init/mount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/src/init/mount.cpp b/native/src/init/mount.cpp index 084cd5a55..a4da46866 100644 --- a/native/src/init/mount.cpp +++ b/native/src/init/mount.cpp @@ -253,7 +253,7 @@ void MagiskInit::setup_tmp(const char *path) { chdir(path); // Prepare worker - xmount(WORKERDIR, WORKERDIR, nullptr, MS_BIND, nullptr); + xmount("magisk", WORKERDIR, "tmpfs", 0, "mode=755"); // Use isolated devpts if kernel support if (access("/dev/pts/ptmx", F_OK) == 0) {