ShirkNeko
0400b94674
v2.0.0
2025-11-05 15:43:10 +08:00
ShirkNeko
247f7d4aee
Kernel: Enable processes with corresponding UIDs to utilise netlink, and optimise netlink functionality
2025-11-05 15:41:14 +08:00
ShirkNeko
088ce97697
kernel: Remove prctl; use netlink communication to control manual_su
2025-11-05 03:53:54 +08:00
ShirkNeko
c0a86544d8
kernel: Remove macro definitions, pass variables using ccflags -y, and reapply manual su protection.
...
kernel: stop printing useless message unless its ddk environment
* In-tree build show empty KDIR
-- KDIR:
-- MDIR: /home/runner/work/KernelSU-Test/KernelSU-Test/kernel_414/KernelSU/kernel
AR drivers/iommu/built-in.o
CC drivers/input/misc/uinput.o
-- KernelSU version: 12329
-- KernelSU: CONFIG_KSU_MANUAL_HOOK
-- Supported KernelSU Manager(s): tiann, rsuntk, 5ec1cff
CC drivers/kernelsu/ksu.o
AR drivers/input/joystick/built-in.o
CC drivers/hid/hid-roccat-pyra.o
Co-authored-by: Faris <rissu.ntk@gmail.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-05 02:18:38 +08:00
weishu
47bd84f3d1
kernel: init/exit umount feature
2025-11-04 22:29:55 +08:00
Ylarod
06e714b4e7
ksubot: add branch, happy 2k
2025-11-04 22:26:40 +08:00
weishu
1439e486a1
kernel: rework umount with task_work
2025-11-04 21:57:10 +08:00
ShirkNeko
801bcb0e1f
Revert "Implement workqueue for unmounting"
2025-11-04 21:55:00 +08:00
Ylarod
54b5fb5fdb
ignore user settings
2025-11-04 21:29:19 +08:00
Ylarod
1cc9fce2c6
rename to managedFeatures
2025-11-04 21:29:11 +08:00
ShirkNeko
46fefc299c
kernel: Remove CONFIG_KSU_MANUAL_SU protection
2025-11-04 21:28:39 +08:00
ShirkNeko
23cc0ceff1
Revert "ci: bump ddk to 20251104, fix android16-6.12 lkm"
...
This reverts commit 257f0ca6de .
2025-11-04 21:08:24 +08:00
ShirkNeko
4a610af452
manager: Fixed warning card status error
...
- Reuse your own DDK
2025-11-04 20:30:04 +08:00
backslashxx
8177afa81e
kernel: core_hook: provide a better reboot handler ( #523 )
...
* Revert "feat: try manual reboot hook (#521 )"
This reverts commit 1853d9decf .
* kernel: core_hook: provide a better reboot handler
I propose that you pass cmd and arg as reference.
this is so we can have much more extendable use of that pointer
kernel: core_hook: provide sys_reboot handler
- 2e2727d56c
kernel: kp_ksud: add sys_reboot kp hook
- 03285886b0
I'm proposing passing arg as reference to arg pointer and also pass int cmd
we can use it to pass numbers atleast.
for advanced usage, we can use it as a delimiter so we can pass a pointer to array.
example pass a char *array[] which decays to a char ** and then use cmd as the number of array members.
we can pass the pointer of the first member of the array and use cmd as the delimiter (count) of members.
for simpler usecase, heres some that I added.
kernel: core_hook: expose umount list on sys_reboot interface
- 352de41e4b
kernel: core_hook: expose nuke_ext4_sysfs to sys_reboot interface
- 83fc684ccb
ksud: add cmd for add-try-umount, wipe-umount-list and nuke-ext4-sysfs
- a4eab4b8c3
more usage demos
https://github.com/backslashxx/lkm_template/tree/write-pointer-on-pointer
https://github.com/backslashxx/lkm_template/tree/pointer-reuse
I actually proposed sys_reboot upstream because of this pointer that is very usable.
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
---------
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
2025-11-04 19:51:40 +08:00
ShirkNeko
3588282b43
ci: build dev manager
...
Co-authored-by: Ylarod <me@ylarod.cn >
2025-11-04 19:49:08 +08:00
ShirkNeko
257f0ca6de
ci: bump ddk to 20251104, fix android16-6.12 lkm
...
-kernel: Using macros to control manual su operations
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-04 19:44:43 +08:00
ShirkNeko
c863ff6f49
ci: Attempting once more to build the LKM using the DDK
2025-11-04 19:28:13 +08:00
ShirkNeko
e99a14290f
manager: fix logical confusion
2025-11-04 12:22:49 +08:00
backslashxx
18e60ededa
Reapply: "kernel: Allow to use in Private Space" ( #2857 )
...
rebase of
0576495b4b
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com >
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-04 11:17:46 +08:00
ShirkNeko
22e4b69231
manager: When the version is less than 13490, enable safe mode.
2025-11-04 11:16:42 +08:00
AlexLiuDev233
1853d9decf
feat: try manual reboot hook ( #521 )
...
* feat: try manual reboot hook
* refactor: move ksu_handle_reboot to supercalls.c for ShirkNeko
---------
2025-11-04 01:08:49 +08:00
ShirkNeko
d286f49e11
[skip ci]kernel: Migrating KPM to ioctl
2025-11-04 00:52:13 +08:00
ShirkNeko
7103779a11
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 >
2025-11-04 00:35:26 +08:00
ShirkNeko
4350d309da
manager: Implement version restrictions for certain features
2025-11-03 14:59:12 +08:00
ShirkNeko
7051b22536
manager: Provide backward compatibility for legacy kernels
2025-11-03 14:32:16 +08:00
ShirkNeko
e0bce04e79
ksud: clippy happy & fmt
2025-11-03 12:24:36 +08:00
ShirkNeko
c75b041c40
kernel: Reset KERNEL_SU_OPTION to 0xDEADBEEF
2025-11-03 12:12:08 +08:00
ShirkNeko
d2a3f0fcad
manager: fix suggest boot partition if we've root.
...
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-03 12:10:49 +08:00
ShirkNeko
696c3059b6
manager: fix legacy get version
...
Co-authored-by: weishu <twsxtd@gmail.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-03 12:09:00 +08:00
Ylarod
ab8e966b7f
add check_managed_features to installer.sh
2025-11-03 11:48:03 +08:00
Ylarod
7ece40bb2c
ksud: add managed_feature
2025-11-03 11:47:39 +08:00
ShirkNeko
d1aa6c8beb
manager: improve local LKM selection
...
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-03 11:39:42 +08:00
Ylarod
bfed2d700a
add legacy get_version & Full get_version
...
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
2025-11-03 11:16:55 +08:00
ShirkNeko
59339b806a
Revert "ci: use ddk for faster ci, manual gki image build"
...
This reverts commit 33d1f18395 .
2025-11-03 03:49:56 +08:00
ShirkNeko
2433d64b6b
Revert "ci: Attempting to resolve the issue with DDK compilation being unavailable"
...
This reverts commit a622657092 .
2025-11-03 03:39:46 +08:00
ShirkNeko
a622657092
ci: Attempting to resolve the issue with DDK compilation being unavailable
2025-11-03 00:57:29 +08:00
Ylarod
b4e682148a
kernel: remove dynamic alloc in feature
2025-11-03 00:41:27 +08:00
Ylarod
02474a5953
update embed ksuinit to v2
2025-11-02 23:49:46 +08:00
Ylarod
450dbf14fc
kernel: disable setuid debug log
2025-11-02 23:49:40 +08:00
Ylarod
d89eab2c34
use cap_task_fix_setuid hook to avoid inline issue
2025-11-02 22:04:28 +08:00
ShirkNeko
a6b86a4f99
ci: skip dup lkm build
...
- Fixed and added build 6.12
- Repair construction
Co-authored-by: Ylarod <me@ylarod.cn >
2025-11-02 21:53:53 +08:00
ShirkNeko
33d1f18395
ci: use ddk for faster ci, manual gki image build
...
Co-authored-by: Ylarod <me@ylarod.cn >
2025-11-02 20:54:58 +08:00
Ylarod
8ebe60ca04
update ioctl macro ( #2850 )
2025-11-02 20:15:55 +08:00
ShirkNeko
980613c6a9
ksud: fmt
2025-11-02 20:07:35 +08:00
ShirkNeko
47bcc956a3
fix lot ( #518 )
...
* refact: use feature subsystem
* use 64bit feature
* fix
* add fixme
* add feature max to get_info
* use 32bit feature id
* allow root to get/set feature
* more clean perm_check functions
* fix
* add feature command to ksud
kernel: do not expose perm checker
* fix security_task_fix_setuid_handler_pre
* add android16-6.12 ci
* manager: add kernel_umount switch
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com >
* manager: Reinstate the LKM selection function
* kernel: add name and print command value
- Optimise sulog log display
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com >
* fix
* ksud: clippy
---------
Co-authored-by: Ylarod <me@ylarod.cn >
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com >
Co-authored-by: weishu <twsxtd@gmail.com >
2025-11-02 20:01:24 +08:00
ꑄℭѧᝰ.ᐟ
00de4e1c64
Update Vietnamese Translation ( #515 )
...
* Update Vietnamese Translation
* Fix typo strings
2025-11-02 18:42:34 +08:00
Ylarod
97ec718fea
switch ns umount
2025-11-02 12:23:23 +08:00
Wang Han
5c96f951b5
Implement workqueue for unmounting
...
umount schedules, so it cannot be used in kprobe context.
2025-11-02 12:21:00 +08:00
Ylarod
7e446efac4
back to kprobe setuid hook
2025-11-02 12:17:21 +08:00
ShirkNeko
c06d694ebc
kernel: When CONFIG_KSU = m, disable sulog
2025-11-02 03:09:55 +08:00