kernelsu: Remove KSU version tag check
Some checks failed
Continues testing / build (push) Has been cancelled

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
Pranav Vashi
2025-10-26 10:35:48 +05:30
committed by Joey
parent d0c1875a69
commit 3d8349d22a
2 changed files with 0 additions and 11 deletions

View File

@@ -448,15 +448,6 @@ int ksu_handle_prctl(int option, unsigned long arg2, unsigned long arg3,
return 0;
}
if (arg2 == CMD_GET_VERSION_TAG) {
const char *tag = KERNEL_SU_VERSION_TAG;
size_t tag_len = strlen(tag) + 1;
if (copy_to_user((void __user *)arg3, tag, tag_len)) {
pr_err("prctl reply error, cmd: %lu\n", arg2);
}
return 0;
}
if (arg2 == CMD_GET_MANAGER_UID) {
uid_t manager_uid = ksu_get_manager_uid();
if (copy_to_user(arg3, &manager_uid, sizeof(manager_uid))) {

View File

@@ -5,7 +5,6 @@
#include <linux/workqueue.h>
#define KERNEL_SU_VERSION KSU_VERSION
#define KERNEL_SU_VERSION_TAG KSU_VERSION_TAG
#define KERNEL_SU_OPTION 0xDEADBEEF
#define CMD_GRANT_ROOT 0
@@ -27,7 +26,6 @@
#define CMD_GET_MANAGER_UID 16
#define CMD_HOOK_MODE 0xC0DEAD1A
#define CMD_GET_VERSION_TAG 0xC0DEAD1B
#define EVENT_POST_FS_DATA 1
#define EVENT_BOOT_COMPLETED 2