添加 KPM 模块控制的条件编译支持

This commit is contained in:
ShirkNeko
2025-03-30 02:42:40 +08:00
parent 62ea0cb410
commit fcf2739cbc

View File

@@ -412,6 +412,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
return 0; return 0;
} }
#ifdef CONFIG_KPM
// ADD: 添加KPM模块控制 // ADD: 添加KPM模块控制
if(sukisu_is_kpm_control_code(arg2)) { if(sukisu_is_kpm_control_code(arg2)) {
int res; int res;
@@ -425,6 +426,7 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
return 0; return 0;
} }
#endif
// all other cmds are for 'root manager' // all other cmds are for 'root manager'
if (!from_manager) { if (!from_manager) {