From e872fafd8b01031dbc51a922a687673ea5810f6b Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Thu, 10 Jul 2025 17:47:34 +0800 Subject: [PATCH] Update getModuleDir() API doc --- native/src/core/zygisk/api.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/src/core/zygisk/api.hpp b/native/src/core/zygisk/api.hpp index a6310451c..10b10c1f2 100644 --- a/native/src/core/zygisk/api.hpp +++ b/native/src/core/zygisk/api.hpp @@ -236,6 +236,9 @@ struct Api { // or in the root companion process (assuming that you sent the fd over the socket). // Both restrictions are due to SELinux and UID. // + // Module should also make sure zygote is allowed to read module dir (e.g. module dir has + // system_file context) due to SELinux restrictions on socket messages. + // // Returns -1 if errors occurred. int getModuleDir();