## Issue Description
I was able to build the kernel, but I'm experiencing an issue with the `su` command. When I run `su` on my POCO X6 Pro device, I get the following error:
`/system/bin/sh: su: inaccessible or not found`
Despite the error, I've verified that the shell has the necessary permissions. To troubleshoot this issue, I've tried moving the hook to `vfs_fstatat` and using the `statx_flags` argument, which resolved the issue.
## Prerequisites
Before submitting this issue, I've made sure to:
* Search for relevant issues and found none
* Upload the bug report file in KernelSU Manager - Settings - Report log
* Verify that I know how to reproduce the issue and it's not specific to my device
## Bug Description
The issue is reproducible when using the `su` command on my POCO X6 Pro device. I've checked the kernel source code and identified the problematic function, which is `vfs.statx`. Specifically, the code:
```c
#ifdef CONFIG_KSU
extern int ksu_handle_stat(int *dfd, const char __user **filename_user,
int *flags);
#endif
static int vfs_statx(int dfd, struct filename *filename, int flags,
struct kstat *stat, u32 request_mask)
{
struct path path;
unsigned int lookup_flags = getname_statx_lookup_flags(flags);
int error;
#ifdef CONFIG_KSU
ksu_handle_stat(&dfd, (const char **)&filename, &flags);
#endif
...
}
```
## Steps to Reproduce
The issue can be reproduced by running the `su` command on the device.
## Expected Behavior
The expected behavior is for the `su` command to work correctly.
## Screenshots
No screenshots are available.
## Logs
No logs are available.
## Device Information
* Device: POCO X6 Pro
* OS Version: 14
* KernelSU Version: 11997
* Kernel Version: 6.1.119-android14-11