Skip to content

Update KernelSU-Next to v3.1.0-legacy-susfs-v2 with SUSFS v2.1.0#6

Open
agonbar wants to merge 2 commits intoraystef66:16.0from
agonbar:update-ksun-legacy
Open

Update KernelSU-Next to v3.1.0-legacy-susfs-v2 with SUSFS v2.1.0#6
agonbar wants to merge 2 commits intoraystef66:16.0from
agonbar:update-ksun-legacy

Conversation

@agonbar
Copy link
Copy Markdown

@agonbar agonbar commented Mar 20, 2026

Summary

Updates KernelSU-Next from the old version (12349) to v3.1.0-legacy-susfs-v2 (33007) with SUSFS v2.1.0 support, using sidex15's legacy-susfs-v2 branch for non-GKI 4.x kernels.

Changes

Commit 1: Update KernelSU-Next to v3.1.0-legacy

  • Update KernelSU-Next submodule to sidex15/KernelSU-Next legacy-susfs-v2 branch
  • Add ksu_handle_sys_reboot hook in kernel/reboot.c (required by new KSUN)
  • Update drivers/Makefile from obj-y to obj-$(CONFIG_KSU) to match new Kbuild

Commit 2: Upgrade susfs from v1.5.5 to v2.1.0

  • Port susfs core files (fs/susfs.c, include/linux/susfs.h, include/linux/susfs_def.h) from sidex15's 4.19 kernel backport, adapted for 4.14
  • Remove deprecated fs/sus_su.c (sus_su feature removed in v2.0.0)
  • Update fs/stat.c hooks to v2.0.0 API (susfs_generic_fillattr_spoofer)
  • Clean stale sus_su #endif blocks in fs/overlayfs/
  • Add backward-compat aliases in susfs_def.h for v1.5.5 hooks not yet ported
  • Add compat stubs in susfs.c for removed v1.5.5 functions
  • Include KernelSU-Next Kbuild auto-patches for selinux and seccomp

SUSFS v2.1.0 features

  • SDcard monitoring via fsnotify
  • sus_path_loop for loop-based path hiding
  • sus_map for map-based hiding
  • AVC log spoofing
  • Improved mount hiding for non-SU processes

Context

As discussed in the XDA thread (post #105-106) and in direct messages with @raystef66. The susfs kernel patches are ported from sidex15's kernel (4.19) to 4.14.

Testing

  • Built and tested on cepheus with crDroid v12.8 (Android 16)
  • KSUN Manager detects version 33007 correctly
  • SUSFS v2.1.0 initializes at boot (confirmed via dmesg)
  • SDcard fsnotify monitoring working
  • Hook mode: Manual (correct for 4.14.x)
  • Banking apps (Revolut, Abanca) working
  • All existing modules (Integrity Box, TEESimulator, Shamiko, Zygisk Next) working

Note on compat stubs

Some v1.5.5 kernel hooks (in fs/namei.c, fs/namespace.c, fs/readdir.c, etc.) still use the old API via backward-compat aliases defined in susfs_def.h. These work correctly but could be incrementally updated to the v2.0.0 API in future commits for a cleaner implementation.

agonbar added 2 commits March 20, 2026 13:08
- Update KernelSU-Next submodule to legacy branch for 4.x kernel support
- Add ksu_handle_sys_reboot hook in kernel/reboot.c (required by new KSUN)
- Change drivers/Makefile from obj-y to obj-$(CONFIG_KSU) to match new Kbuild

The current KSUN version (12349) is too old for the latest KSUN Manager
which requires >= 32310. Since kernel 4.14 cannot use LivePatch, this
updates the built-in KSUN to v3.1.0-legacy (version 33026) using the
official legacy branch designed for 4.x kernels.

Tested on cepheus with crDroid v12.8 (Android 16).
- Switch KernelSU-Next submodule to sidex15/KernelSU-Next legacy-susfs-v2
  branch which includes susfs v2.0.0 support for non-GKI kernels
- Port susfs core files (susfs.c, susfs.h, susfs_def.h) from sidex15's
  4.19 kernel backport, adapted for 4.14
- Remove deprecated sus_su.c (sus_su feature removed in v2.0.0)
- Update fs/stat.c hooks from v1.5.5 to v2.0.0 API
  (susfs_generic_fillattr_spoofer replaces old ino-based approach)
- Clean stale sus_su #endif blocks in fs/overlayfs/
- Add backward-compat aliases in susfs_def.h for v1.5.5 kernel hooks
  not yet ported to v2.0.0 (TASK_STRUCT_NON_ROOT_USER_APP_PROC, etc.)
- Add compat stubs in susfs.c for removed v1.5.5 functions
- Include KernelSU-Next Kbuild auto-patches for selinux and seccomp

SUSFS v2.1.0 features: sdcard monitoring via fsnotify, sus_path_loop,
sus_map, AVC log spoofing, improved mount hiding for non-SU processes.

Tested on cepheus with crDroid v12.8 (Android 16). Boot, root, modules,
and banking apps (Revolut, Abanca) all working.
@agonbar agonbar changed the title Update KernelSU-Next to v3.1.0-legacy (version 33026) Update KernelSU-Next to v3.1.0-legacy-susfs-v2 with SUSFS v2.1.0 Mar 25, 2026
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