core: use a new tmpfs as worker

This commit is contained in:
vvb2060 2024-12-06 13:42:03 +08:00 committed by John Wu
parent 849b284da5
commit 4fb539c110

View File

@ -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) {