[skip ci]kernel: Migrating KPM to ioctl

This commit is contained in:
ShirkNeko
2025-11-04 00:09:42 +08:00
parent 7103779a11
commit d286f49e11
5 changed files with 51 additions and 35 deletions

View File

@@ -45,10 +45,6 @@
#include "manual_su.h"
#endif
#ifdef CONFIG_KPM
#include "kpm/kpm.h"
#endif
bool ksu_module_mounted = false;
#ifdef CONFIG_COMPAT
@@ -442,18 +438,6 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
pr_info("option: 0x%x, cmd: %ld\n", option, arg2);
#endif
#ifdef CONFIG_KPM
if(sukisu_is_kpm_control_code(arg2)) {
int res;
pr_info("KPM: calling before arg2=%d\n", (int) arg2);
res = sukisu_handle_kpm(arg2, arg3, arg4, arg5);
return 0;
}
#endif
#ifdef CONFIG_KSU_MANUAL_SU
if (arg2 == CMD_MANUAL_SU_REQUEST) {
struct manual_su_request request;