manager: add module signature verification

fix site base
This commit is contained in:
ShirkNeko
2025-08-03 04:34:04 +08:00
parent 7e7d2a28af
commit 48d7a13028
8 changed files with 82 additions and 1 deletions

View File

@@ -52,6 +52,7 @@ object Natives {
}
init {
System.loadLibrary("zakosign")
System.loadLibrary("zako")
}
@@ -124,6 +125,9 @@ object Natives {
*/
external fun getManagersList(): ManagersList?
// 模块签名验证
external fun verifyModuleSignature(modulePath: String): Boolean
private const val NON_ROOT_DEFAULT_PROFILE_KEY = "$"
private const val NOBODY_UID = 9999