You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
adapted from sys_execve_handler_pre() upstream, https://github.com/tiann/KernelSU/commit/2027ac3 this completes the puzzle where all hooks are on syscalls ksu_handle_execve_ksud - sets argv to __argv, dunno what this is for, I just copied. - creates dummy struct `filename_in` to store filename in `filename_in.name` - strncpy filename to path, assign path to .name - simply a shim for ksu_handle_execveat_ksud usage: `ksu_handle_execve_ksud(filename, argv);` on sys_execve tested on 4.14, 6.1 Tested-by: selfmusing <mirandamehek@gmail.com> Tested-by: Adam W. Willis <return.of.octobot@gmail.com> Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com> Co-authored-by: Another Guy <25584417+anotherjin@users.noreply.github.com>