Skip to content

feat(kernel ksud): add sulog#3360

Merged
Ylarod merged 12 commits into
mainfrom
sulog
Mar 29, 2026
Merged

feat(kernel ksud): add sulog#3360
Ylarod merged 12 commits into
mainfrom
sulog

Conversation

@Ylarod

@Ylarod Ylarod commented Mar 29, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
for: tiann#3360

[    2.284304] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1:  envp_len: 32
[    2.416786] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: selinux_setup envp_len: 204
[    2.468329] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: second_stage envp_len: 234
[    2.468331] KernelSU: ksu_handle_bprm_ksud: /system/bin/init second_stage executed
[    7.357700] KernelSU: ksu_bprm_check: ksud is being executed
[    7.357708] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[    7.523035] KernelSU: ksu_bprm_check: ksud is being executed
[    7.523052] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[    7.532065] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/app_process argv1: ./lspd envp_len: 256
[    7.532074] KernelSU: ksu_handle_bprm_ksud: exec app_process, /data prepared, second_stage: 1
[    7.599533] KernelSU: ksu_bprm_check: ksud is being executed
[    7.599537] KernelSU: ksu_bprm_check: arguments: sh -c -- su -v
[    8.708011] KernelSU: ksu_bprm_check: ksud is being executed
[    8.708018] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.603007] KernelSU: ksu_bprm_check: ksud is being executed
[   11.603077] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   11.842903] KernelSU: ksu_bprm_check: ksud is being executed
[   11.842909] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.900306] KernelSU: ksu_bprm_check: ksud is being executed
[   11.900312] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   27.762282] KernelSU: ksu_bprm_check: ksud is being executed
[   27.762289] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   28.294950] KernelSU: ksu_bprm_check: ksud is being executed
[   28.294954] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.319387] KernelSU: ksu_bprm_check: ksud is being executed
[   28.319390] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.331693] KernelSU: ksu_bprm_check: ksud is being executed
[   28.331696] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.351392] KernelSU: ksu_bprm_check: ksud is being executed
[   28.351395] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   37.034913] KernelSU: ksu_bprm_check: ksud is being executed
[   37.034914] KernelSU: ksu_bprm_check: arguments: /system/bin/sh -
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
for: tiann#3360

NOTE: we get argv/envp of last process that tries to execute ksud

[    2.284304] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1:  envp_len: 32
[    2.416786] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: selinux_setup envp_len: 204
[    2.468329] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: second_stage envp_len: 234
[    2.468331] KernelSU: ksu_handle_bprm_ksud: /system/bin/init second_stage executed
[    7.357700] KernelSU: ksu_bprm_check: ksud is being executed
[    7.357708] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[    7.523035] KernelSU: ksu_bprm_check: ksud is being executed
[    7.523052] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[    7.532065] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/app_process argv1: ./lspd envp_len: 256
[    7.532074] KernelSU: ksu_handle_bprm_ksud: exec app_process, /data prepared, second_stage: 1
[    7.599533] KernelSU: ksu_bprm_check: ksud is being executed
[    7.599537] KernelSU: ksu_bprm_check: arguments: sh -c -- su -v
[    8.708011] KernelSU: ksu_bprm_check: ksud is being executed
[    8.708018] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.603007] KernelSU: ksu_bprm_check: ksud is being executed
[   11.603077] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   11.842903] KernelSU: ksu_bprm_check: ksud is being executed
[   11.842909] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.900306] KernelSU: ksu_bprm_check: ksud is being executed
[   11.900312] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   27.762282] KernelSU: ksu_bprm_check: ksud is being executed
[   27.762289] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   28.294950] KernelSU: ksu_bprm_check: ksud is being executed
[   28.294954] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.319387] KernelSU: ksu_bprm_check: ksud is being executed
[   28.319390] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.331693] KernelSU: ksu_bprm_check: ksud is being executed
[   28.331696] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.351392] KernelSU: ksu_bprm_check: ksud is being executed
[   28.351395] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   37.034913] KernelSU: ksu_bprm_check: ksud is being executed
[   37.034914] KernelSU: ksu_bprm_check: arguments: /system/bin/sh -
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
for: tiann#3360

NOTE: we get argv/envp of last process that tries to execute ksud, basically before it properly forks

[    2.284304] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1:  envp_len: 32
[    2.416786] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: selinux_setup envp_len: 204
[    2.468329] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/init argv1: second_stage envp_len: 234
[    2.468331] KernelSU: ksu_handle_bprm_ksud: /system/bin/init second_stage executed
[    7.357700] KernelSU: ksu_bprm_check: ksud is being executed
[    7.357708] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[    7.523035] KernelSU: ksu_bprm_check: ksud is being executed
[    7.523052] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[    7.532065] KernelSU: ksu_handle_bprm_ksud: filename: /system/bin/app_process argv1: ./lspd envp_len: 256
[    7.532074] KernelSU: ksu_handle_bprm_ksud: exec app_process, /data prepared, second_stage: 1
[    7.599533] KernelSU: ksu_bprm_check: ksud is being executed
[    7.599537] KernelSU: ksu_bprm_check: arguments: sh -c -- su -v
[    8.708011] KernelSU: ksu_bprm_check: ksud is being executed
[    8.708018] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.603007] KernelSU: ksu_bprm_check: ksud is being executed
[   11.603077] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   11.842903] KernelSU: ksu_bprm_check: ksud is being executed
[   11.842909] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   11.900306] KernelSU: ksu_bprm_check: ksud is being executed
[   11.900312] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   27.762282] KernelSU: ksu_bprm_check: ksud is being executed
[   27.762289] KernelSU: ksu_bprm_check: arguments: /system/bin/init second_stage
[   28.294950] KernelSU: ksu_bprm_check: ksud is being executed
[   28.294954] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.319387] KernelSU: ksu_bprm_check: ksud is being executed
[   28.319390] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.331693] KernelSU: ksu_bprm_check: ksud is being executed
[   28.331696] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   28.351392] KernelSU: ksu_bprm_check: ksud is being executed
[   28.351395] KernelSU: ksu_bprm_check: arguments: /data/adb/ksu/bin/busybox sh /da
[   37.034913] KernelSU: ksu_bprm_check: ksud is being executed
[   37.034914] KernelSU: ksu_bprm_check: arguments: /system/bin/sh -
@Ylarod Ylarod changed the title feat: add sulog feat(kernel ksud): add sulog Mar 29, 2026
@Ylarod Ylarod merged commit 53fe4f4 into main Mar 29, 2026
21 checks passed
@Ylarod Ylarod deleted the sulog branch March 29, 2026 06:23
Ylarod added a commit that referenced this pull request Mar 29, 2026
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
tiann@fb7b666

tiann#3360

x

Update core_hook.c

Update kernel_compat.h

x

gate this only for sucompat
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
tiann@fb7b666

tiann#3360

Update core_hook.c

Update kernel_compat.h

x

gate this only for sucompat

x

Update kernel_includes.h

Update kernel_compat.h
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
tiann@fb7b666

tiann#3360

Update core_hook.c

Update kernel_compat.h

x

gate this only for sucompat

x

Update kernel_includes.h

Update kernel_compat.h

Update kernel_includes.h

Update event.c
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
adapt sulog

tiann@fb7b666

tiann#3360

Update core_hook.c

Update kernel_compat.h

x

gate this only for sucompat

x

Update kernel_includes.h

Update kernel_compat.h

Update kernel_includes.h

Update event.c
backslashxx added a commit to backslashxx/KernelSU that referenced this pull request Mar 29, 2026
adapt sulog

tiann@fb7b666

tiann#3360

Update core_hook.c

Update kernel_compat.h

x

gate this only for sucompat

x

Update kernel_includes.h

Update kernel_compat.h

Update kernel_includes.h

Update event.c
AlexLiuDev233 added a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 4, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
AlexLiuDev233 added a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 4, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
AlexLiuDev233 added a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 4, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
luyanci pushed a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 4, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
AlexLiuDev233 added a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 11, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
AlexLiuDev233 added a commit to ReSukiSU/ReSukiSU that referenced this pull request Apr 11, 2026
This commit introduce upstream's sulog
And squashed upstream's add sulog & fix return value
Use xxksu's some code for UL compatible

[cherry-picked from upstream commit tiann/KernelSU@fb7b666]
[cherry-picked from upstream commit tiann/KernelSU@d13bac5]
[cherry-picked from xxksu commit backslashxx/KernelSU@67eb2b9]

Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: AlexLiuDev233 <wzylin11@outlook.com>
Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Flopster101 added a commit to FlopKernel-Series/flop_exynos2100_kernel that referenced this pull request Apr 12, 2026
81b42954dadda kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db9265 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8e kernel: implement ksu_toolkit support
c9272c57bd644 manager: adb_root: load our ksurc if possible
42418d3ab6419 kernel: infra: shim is_compat_syscall
12b523147a356 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5c manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b3 manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa0 manager: bump minimal supported kernel version to 34795
79fc35b913e4f manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b985 manager: cleanup
2ee60a980d4d2 manager: disable adb root switch widget when kernel not support this feature
34e60f2270f45 ksud: fix late_load's type error
5a89f36776e4f userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e0 manager: throw out these comment garbage
291e691a820ea ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3d kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d812 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b5400 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c114359 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a5 kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc803 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d1351 manager: fix webui ime insets
a1411e960f93a fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed136221 ksud: add manager package name option to some commands
b290252f80b62 kernel: add sulog for ioctl grant root
fc9a2372609f6 kernel: fix build for armv7l, 4.9+ kernel
e75005fde4765 manager: add sulog screen
70dc59494f1ca ksud: format
422374fe1669b kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad19 ksud: remove ksud before update it
d9caa2397afa6 ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a05 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0ea kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f71 manager: sync translation from Crowdin (#134)
d63ebb67dfef9 build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22a build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e5 ksubot: add a delay
ec058e15d33eb crowdin: enable skip_identical_translations
5d6925650b9f8 ksud: add `feature get --config`
f035650d8c0d8 kernel: fix manual hook check
815fe09cf26b5 ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f15 ksud: add --kmi for ksud late-load
e85512f299ccd ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a16 ksud: fix daemonize
086e2caba42ce [skip ci]ci: clean up unused scripts
fcac5f7736859 Kernel: minify Kbuild (#129)
afdf237da8dd9 build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc2 kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
Flopster101 added a commit to FlopKernel-Series/flop_trinket-mi_kernel that referenced this pull request Apr 13, 2026
81b42954dadd kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db926 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8 kernel: implement ksu_toolkit support
c9272c57bd64 manager: adb_root: load our ksurc if possible
42418d3ab641 kernel: infra: shim is_compat_syscall
12b523147a35 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5 manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa manager: bump minimal supported kernel version to 34795
79fc35b913e4 manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b98 manager: cleanup
2ee60a980d4d manager: disable adb root switch widget when kernel not support this feature
34e60f2270f4 ksud: fix late_load's type error
5a89f36776e4 userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e manager: throw out these comment garbage
291e691a820e ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3 kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d81 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b540 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c11435 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc80 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d135 manager: fix webui ime insets
a1411e960f93 fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed13622 ksud: add manager package name option to some commands
b290252f80b6 kernel: add sulog for ioctl grant root
fc9a2372609f kernel: fix build for armv7l, 4.9+ kernel
e75005fde476 manager: add sulog screen
70dc59494f1c ksud: format
422374fe1669 kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad1 ksud: remove ksud before update it
d9caa2397afa ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a0 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0e kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f7 manager: sync translation from Crowdin (#134)
d63ebb67dfef build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22 build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e ksubot: add a delay
ec058e15d33e crowdin: enable skip_identical_translations
5d6925650b9f ksud: add `feature get --config`
f035650d8c0d kernel: fix manual hook check
815fe09cf26b ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f1 ksud: add --kmi for ksud late-load
e85512f299cc ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a1 ksud: fix daemonize
086e2caba42c [skip ci]ci: clean up unused scripts
fcac5f773685 Kernel: minify Kbuild (#129)
afdf237da8dd build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
Flopster101 added a commit to FlopKernel-Series/flop_s5e8825_kernel that referenced this pull request Apr 15, 2026
81b42954dadd kernel: Replace GFP_ATOMIC flags in throne tracker
6d47cf8db926 kernel: Fix OOB read caused by missing null terminator (tiann/KernelSU#3413)
ae631ffbc1e8 kernel: implement ksu_toolkit support
c9272c57bd64 manager: adb_root: load our ksurc if possible
42418d3ab641 kernel: infra: shim is_compat_syscall
12b523147a35 manager: don't play animation when SwipeToDismissBox reset
11e5ca6008e5 manager: make Snackbar don't share across every page, make Snackbar can be dismieed by swipe
71c618a4618b manager: stop show hook type when manager is not valid, stop show hook type in susfs version
c6b6bf5f74aa manager: bump minimal supported kernel version to 34795
79fc35b913e4 manager: use Icons.Filled.Adb for adb root feature icon
ea35b7172b98 manager: cleanup
2ee60a980d4d manager: disable adb root switch widget when kernel not support this feature
34e60f2270f4 ksud: fix late_load's type error
5a89f36776e4 userspace: improve module loading and ksud CLI (tiann/KernelSU#3406)
a53b0d29a97e manager: throw out these comment garbage
291e691a820e ksud: fix late-load mode can't reopen manager after EoP
315143cd9bd3 kernel: Fix building sulog on kernel 6.1 & x86_64 (tiann/KernelSU#3401)
32347a008d81 manager: show seccomp status on Home screen (tiann/KernelSU#3372)
4a216d78b540 syscall_hook: Fix building on kernel 6.6 and below (tiann/KernelSU#3383)
ea6d38c11435 kernel: remove asm/memory.h include in adb_root.c
759d6545dc0a kernel: Don't advertise webview zygote in umount list (tiann/KernelSU#3389)
0403aa98bc80 kernel, ksud, manager: adb root (tiann/KernelSU#3382)
1007dda3d135 manager: fix webui ime insets
a1411e960f93 fix: add CORS header to ksu://icon/ responses to allow programmatic image loading (#3402)
fdc27ed13622 ksud: add manager package name option to some commands
b290252f80b6 kernel: add sulog for ioctl grant root
fc9a2372609f kernel: fix build for armv7l, 4.9+ kernel
e75005fde476 manager: add sulog screen
70dc59494f1c ksud: format
422374fe1669 kernel: mark more functions as init/exit functions (tiann/KernelSU#3380)
935335d05ad1 ksud: remove ksud before update it
d9caa2397afa ksud: minor refactor (tiann/KernelSU#3377)
5d17fb2c07a0 kernel, ksud: add sulog (tiann/KernelSU#3360)
a86fc8478d0e kernel, ksud, manager: nuke old sulog impl from sukisu
b2f18ec6e0f7 manager: sync translation from Crowdin (#134)
d63ebb67dfef build(deps): bump libc from 0.2.183 to 0.2.184 in /userspace/ksuinit in the crates group (#138)
21754e820d22 build(deps): bump the crates group in /userspace/ksud with 12 updates (#139)
f587a254963e ksubot: add a delay
ec058e15d33e crowdin: enable skip_identical_translations
5d6925650b9f ksud: add `feature get --config`
f035650d8c0d kernel: fix manual hook check
815fe09cf26b ksud: Open susfs subcommand for non-arm64-v8a devices
5bee234587f1 ksud: add --kmi for ksud late-load
e85512f299cc ksud: Change uid references to appid (tiann/KernelSU#3388)
4f40e44797a1 ksud: fix daemonize
086e2caba42c [skip ci]ci: clean up unused scripts
fcac5f773685 Kernel: minify Kbuild (#129)
afdf237da8dd build(deps): bump the crates group in /userspace/ksud with 12 updates (#133)
1ed0b9cc9ebc kernel: fix multi manager not working with ddk

git-subtree-dir: drivers/sukisu
git-subtree-split: 81b42954daddaabe227c76936c736a4661772b68
Anatdx added a commit to Anatdx/YukiSU that referenced this pull request Jun 5, 2026
Align YukiSU kernel directory structure with upstream tiann/KernelSU
layout (core/ feature/ hook/ include/ infra/ manager/ policy/
runtime/ sulog/ supercall/), and create unified uapi/ headers as the
single source of truth for kernel-userspace ABI.

=== Directory Restructuring ===
- Split flat kernel/ into modular subdirectories matching upstream
- Extract uapi/ headers (app_profile, feature, ksu, selinux, sulog,
  supercall) with dual kernel/userspace compatibility
- Move ksud boot events into runtime/boot_event.c with ksud_boot.h
- Split supercalls.c into dispatch.c + perm.c + supercall.c +
  internal.h
- Split sulog into event.c + fd.c under sulog/
- Extract syscall event bridge from syscall_hook_manager into
  hook/syscall_event_bridge.c/h
- Add infra/su_mount_ns.c/h for per-app mount namespace setup
- Split manager.h into manager_identity.h + manager_observer.h

=== Upstream Features & Fixes Incorporated ===

SELinux Hide (tiann/KernelSU#3457, #3459, #3495):
  0efe3cf0 feature: selinux hide
  3f388ef1 selinux_hide: fix attr/current detection
  33dcf82d selinux_hide: hide status

ADB Root (tiann/KernelSU#3382, #3391):
  1835fe32 feature: adb root
  70ca1353 kernel: fix path check in adb root

SuLog (tiann/KernelSU#3360, #3364, #3401):
  fb7b6668 feat(kernel ksud): add sulog
  d13bac52 kernel: sulog: fix return value
  a5c357e6 kernel: Fix building sulog on kernel 6.1 & x86_64

LSM Hook Framework:
  3e271ac4 kernel: add lsm hook framework
  c963aa71 kernel: fix lsm hook

Syscall Table Hook (TSR):
  225ffbbf kernel: use syscall table hook to avoid atomic context
  5f9cada6 kernel: handle ksud execve by syscall_hook_manager

Symbol Resolver Chain (#3461, #3469, #3475):
  6f609368 kernel: common symbol resolve tool
  1e7bc48c kernel: Resolve dotted CFI symbol variants
  da8e0ab1 kernel: refine symbol_resolver
  96a72dd0 kernel: symbol_resolver: resolve suffix starts with "$"
  b11be252 kernel: Prefer hashed .cfi_jt variants before bare symbols

Policydb / AVTab (#3350, #3352, #3439):
  f9c7823e kernel: simpler implementation of copying policydb
  e7b6bf08 kernel: fix copy avtab
  cc83433b kernel: prune redundant avtab nodes after deny rules

Allowlist (#3418, #3093):
  12304099 kernel: refactor allowlist
  6948a44d kernel: Fix OOB read caused by missing null terminator
  71410ccd kernel: don not call path_put when kern_path failed

App Profile v3 Migration (#3363):
  18754602 kernel: bump app profile version, migrate selinux domain

Late-Load / Init.rc Injection (#3478, #3498):
  9ab31068 kernel,ksud: support module-provided init.rc injection
  64fb0888 kernel: Improve late load mode sequence calculation

Safe Exit / Module Lifecycle (#3317):
  3054cc0b feat: safe exit
  2ddeed9c kernel: allow exit
  08378e55 kernel: mark more functions as init/exit functions

Cred / RLIMIT Fixes (#3286, #3338):
  218502a0 kernel: Fix RLIMIT_NPROC leak on root escape
  68143c96 kernel: remove usage of get_current_cred
  15790ccb kernel_umount: fixup printout and avoid UAF

Misc Fixes:
  8c108e1b kernel: allow disable manager or policy
  a92f8c75 supercall: perform free_pid() for kernel 6.15+
  8bc28033 feat: support switch to init_group (SET_INIT_PGRP)
  d21c4436 kernel: Replace GFP_ATOMIC in throne tracker
  279c7501 kernel: sepolicy: use GFP_KERNEL
  40e8fb76 Bring back x86_64 support
  73fc1003 kernel: fix compile for x86-64 v6.13
  1625043f kernel: Fix absolute src handling in Kbuild
  e04f12ec kernel: Fix extmod config propagation
  95a31f28 fix: GKI kernel build
  9ae97f97 syscall_hook: Fix building on kernel 6.6 and below
  f3b4d783 Update KSU config to require EXT4_FS

UAPI / Layout:
  91d0848f kernel: reorganize source layout
  bd1b00cc kernel: unified uapi header
  fefa61d5 kernel: move selinux context to ksu
  25c92eb9 refact: top level cargo workspace, fix uapi
  17367e37 kernel: use parallel build
  1576cc33 kernel: selinux: minify rules

=== YukiSU-Specific Additions ===
- SuperKey authentication (prctl + reboot kprobe) — YukiSU core feature
- KERNEL_SU_DOMAIN defaults to "su" (u:r:su:s0), not upstream "ksu"
- Single release signature via manager_sign.h
- CONFIG_KSU_SUPERKEY / CONFIG_KSU_DISABLE_MANAGER Kconfig options
- Enhanced security feature at ID 100
- app_profile v2→v3 domain migration: ksu→su
- CONFIG_KSU_MANUAL_SU removed (legacy SukiSU old-branch feature)
- CONFIG_KSU_SUSFS removed (YukiSU does not support SUSFS)
- YukiSU version string in Kbuild (GitHub API + local git fallback)
- YukiSU-specific ioctls: GET_MANAGER_UID (201), LIST_TRY_UMOUNT (200)
- Batch sepolicy ABI (data_len/data payload replacing cmd/arg struct)
- Samsung KDP / SELinux porting detection in Kbuild
- Backport compatibility macros (KSU_OPTIONAL_*, KSU_COMPAT_HAS_*)

Co-authored-by: weishu <twsxtd@gmail.com>
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com>
Co-authored-by: Wang Han <416810799@qq.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: YuKongA <70465933+YuKongA@users.noreply.github.com>
Co-authored-by: Shadichy <60534636+shadichy@users.noreply.github.com>
Co-authored-by: u9521 <63995396+u9521@users.noreply.github.com>
Co-authored-by: libingxuan <84086386+aaaaaaaa-815@users.noreply.github.com>
Co-authored-by: Huy Minh <39849246+hmtheboy154@users.noreply.github.com>
Co-authored-by: Kamenta <st2011_230635@qq.com>
Co-authored-by: AlexLiuDev233 <wzylin11@outlook.com>
Co-authored-by: 小潼 <110387028+XiaoTong6666@users.noreply.github.com>
Co-authored-by: Mohammed Riad <1@mhmrdd.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant