Commit Graph

9 Commits

Author SHA1 Message Date
weishu 7e1889c2ec kernel: close fd early 2024-04-29 15:53:12 +08:00
weishu 2efefcea72 kernel: use library import 2024-04-27 09:55:24 +08:00
Heiler Bemerguy e0c684c5ab throne_tracker: Fix Manager sometimes not detecting KSU and optimize it (#1586)
The original logic was wrong and used 3 strlen()s for every file found,
wasting cpu.

Optimize it by first comparing only the filename length, given we
already know it,
and then strncmp() to compare with "base.apk"

Tested successfully on my Bandido Kernel (4.19)
2024-04-03 14:33:10 +08:00
weishu 1b71aa2c78 kernel: Fix wrong kfree 2024-03-27 13:49:09 +08:00
weishu 4841c2123a kernel: alloc path on stack; don't follow symlink 2024-03-27 11:51:41 +08:00
weishu d87bbfa652 kernel: continue search when open some dir failed 2024-03-26 22:56:59 +08:00
weishu d8671b14d1 kernel: clean memory when exit 2024-03-24 16:41:53 +08:00
Jprimero15 0710032928 kernel: make for loop compatible (#1517) 2024-03-24 15:04:57 +08:00
weishu 478fda6712 kernel: remove become_manager and minor refactors 2024-03-24 11:20:43 +08:00