From b9e6937996389579ce5f4caa2f38a3690fb4984f Mon Sep 17 00:00:00 2001 From: LoveSy Date: Tue, 9 May 2023 10:07:00 +0800 Subject: [PATCH] Make magisk node ro as well --- native/src/core/module.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/native/src/core/module.cpp b/native/src/core/module.cpp index 612abbbe6..b3d5d849f 100644 --- a/native/src/core/module.cpp +++ b/native/src/core/module.cpp @@ -207,6 +207,7 @@ public: xsymlink("./magiskpolicy", dest.data()); } create_and_mount("magisk", src); + xmount(nullptr, node_path().data(), nullptr, MS_REMOUNT | MS_BIND | MS_RDONLY, nullptr); } };