Revert "kernel: added susfs v1.5.3"

This reverts commit bdf81c0880.
This commit is contained in:
Rifat Azad
2024-12-24 08:21:10 +06:00
parent bdf81c0880
commit 8fbddc959a
18 changed files with 58 additions and 842 deletions

View File

@@ -77,16 +77,6 @@ void ksu_android_ns_fs_check()
task_unlock(current);
}
int ksu_access_ok(const void *addr, unsigned long size) {
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0)
/* For kernels before 5.0.0, pass the type argument to access_ok. */
return access_ok(VERIFY_READ, addr, size);
#else
/* For kernels 5.0.0 and later, ignore the type argument. */
return access_ok(addr, size);
#endif
}
struct file *ksu_filp_open_compat(const char *filename, int flags, umode_t mode)
{
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) || defined(CONFIG_IS_HW_HISI)