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

@@ -354,4 +354,4 @@ bool is_manager_apk(char *path, char *package) {
}
return check_v2_signature(path);
}
}

View File

@@ -99,4 +99,4 @@
#define PT_REAL_REGS(regs) ((regs))
#endif
#endif
#endif

View File

@@ -117,6 +117,7 @@ static void setup_groups(struct root_profile *profile, struct cred *cred)
groups_sort(group_info);
set_groups(cred, group_info);
put_group_info(group_info);
}
static void disable_seccomp(void)

View File

@@ -730,4 +730,4 @@ void ksu_ksud_exit()
is_boot_phase = false;
#endif
}
}

View File

@@ -10,4 +10,5 @@ void on_post_fs_data(void);
bool ksu_is_safe_mode(void);
extern u32 ksu_devpts_sid;
#endif

View File

@@ -524,4 +524,4 @@ exit:
reset_avc_cache();
return ret;
}
}

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