Fix line breaks in code and clean up unnecessary includes

This commit is contained in:
ShirkNeko
2025-06-11 15:08:43 +08:00
parent 71bb5a3d3b
commit 430a3504d4
7 changed files with 8 additions and 8 deletions

View File

@@ -8,15 +8,13 @@
#include <linux/types.h>
#include <linux/uaccess.h>
#include <linux/version.h>
#include <linux/ptrace.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
#include <linux/sched/task_stack.h>
#else
#include <linux/sched.h>
#endif
/* current_user_stack_pointer */
#include <linux/ptrace.h>
#include "objsec.h"
#include "allowlist.h"
#include "arch.h"
@@ -166,7 +164,7 @@ int ksu_handle_execve_sucompat(int *fd, const char __user **filename_user,
* some cpus dont really have that good speculative execution
* access_ok to substitute set_fs, we check if pointer is accessible
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,0,0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 0, 0)
if (!access_ok(VERIFY_READ, *filename_user, sizeof(path)))
return 0;
#else