This refactors original KSU hooks to replace deep kernel function hooks with targeted hooks.
This backports KernelSU pr#1657 and having pr#2084 elements (32-bit sucompat).
It reduces the scope of kernel function interception and still maintains full fucntionality.
This commit is a squash of the following:
* fs/exec: do_execve: ksu_handle_execve_sucompat hook
* fs/exec: compat_do_execve: ksu_handle_execve_sucompat hook
fs/open: sys_faccessat: ksu_handle_faccessat hook
* fs/read_write: sys_read: ksu_handle_sys_read hook
* fs/stat: sys_newfstatat: ksu_handle_stat hook
* fs/stat: sys_fstatat64: ksu_handle_stat hook
* drivers: input: input_event: ksu_handle_input_handle_event hook
references: KernelSU pr#1657, pr#2084
https://kernelsu.org/guide/how-to-integrate-for-non-gki.html
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>