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

@@ -121,6 +121,12 @@ int ksu_handle_stat(int *dfd, const char __user **filename_user, int *flags)
return 0;
}
int ksu_handle_execveat(int *fd, struct filename **filename_ptr, void *argv,
void *envp, int *flags)
{
return ksu_handle_execveat_sucompat(fd, filename_ptr, argv, envp, flags);
}
// the call from execve_handler_pre won't provided correct value for __never_use_argument, use them after fix execve_handler_pre, keeping them for consistence for manually patched code
int ksu_handle_execveat_sucompat(int *fd, struct filename **filename_ptr,
void *__never_use_argv, void *__never_use_envp,