Skip to content

Commit

Permalink
kernel: fix panic cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Mar 20, 2024
1 parent d958e6d commit 71b56ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kernel/sucompat.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ int ksu_handle_stat(int *dfd, const char __user **filename_user, int *flags)

char path[sizeof(su) + 1];
memset(path, 0, sizeof(path));
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0)
// Remove this later!! we use syscall hook, so this will never happen!!!!!
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) && 0
// it becomes a `struct filename *` after 5.18
// https://elixir.bootlin.com/linux/v5.18/source/fs/stat.c#L216
const char sh[] = SH_PATH;
Expand Down

0 comments on commit 71b56ba

Please sign in to comment.