Revert "kernel: ksud, throne_tracker: small changes for UL"

This reverts commit c4deee1e49.
This commit is contained in:
Rifat Azad
2025-06-14 19:54:59 +06:00
parent bf35f73430
commit c91f9c18ec
2 changed files with 1 additions and 9 deletions

View File

@@ -338,7 +338,7 @@ int ksu_handle_vfs_read(struct file **file_ptr, char __user **buf_ptr,
return 0;
}
if (!S_ISREG(file->f_path.dentry->d_inode->i_mode)) {
if (!d_is_reg(file->f_path.dentry)) {
return 0;
}

View File

@@ -186,11 +186,7 @@ FILLDIR_RETURN_TYPE my_actor(struct dir_context *ctx, const char *name,
return FILLDIR_ACTOR_CONTINUE;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0)
strlcpy(data->dirpath, dirpath, DATA_PATH_LEN);
#else
strscpy(data->dirpath, dirpath, DATA_PATH_LEN);
#endif
data->depth = my_ctx->depth - 1;
list_add_tail(&data->list, my_ctx->data_path_list);
} else {
@@ -255,11 +251,7 @@ void search_manager(const char *path, int depth, struct list_head *uid_data)
// First depth
struct data_path data;
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 8, 0)
strlcpy(data.dirpath, path, DATA_PATH_LEN);
#else
strscpy(data.dirpath, path, DATA_PATH_LEN);
#endif
data.depth = depth;
list_add_tail(&data.list, &data_path_list);