kernel: Simplify and remove user_arg_ptr ksu_handle_execveat_ksud

- Migrate `ksu_handle_execveat` to sucompat
This commit is contained in:
ShirkNeko
2025-09-24 01:27:04 +08:00
parent 7146210192
commit cb01bf428d
3 changed files with 6 additions and 32 deletions

View File

@@ -21,17 +21,6 @@ bool ksu_queue_work(struct work_struct *work)
extern int ksu_handle_execveat_sucompat(int *fd, struct filename **filename_ptr,
void *argv, void *envp, int *flags);
extern int ksu_handle_execveat_ksud(int *fd, struct filename **filename_ptr,
void *argv, void *envp, int *flags);
int ksu_handle_execveat(int *fd, struct filename **filename_ptr, void *argv,
void *envp, int *flags)
{
ksu_handle_execveat_ksud(fd, filename_ptr, argv, envp, flags);
return ksu_handle_execveat_sucompat(fd, filename_ptr, argv, envp,
flags);
}
extern void ksu_sucompat_init();
extern void ksu_sucompat_exit();
extern void ksu_ksud_init();