ksud: Migrating KPM to ioctl

- Fix compatibility manager issues with legacy kernels

Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com>
This commit is contained in:
ShirkNeko
2025-11-04 00:35:26 +08:00
parent 4350d309da
commit 7103779a11
3 changed files with 114 additions and 102 deletions

View File

@@ -50,7 +50,7 @@ static bool ksuctl(int cmd, void* arg1, void* arg2) {
struct ksu_version_info legacy_get_info()
{
int32_t version = -1;
int32_t version = 0;
int32_t flags = 0;
ksuctl(CMD_GET_VERSION, &version, &flags);
return (struct ksu_version_info){version, flags};