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
Open
Update KernelSU-Next to v3.1.0-legacy-susfs-v2 with SUSFS v2.1.0#6agonbar wants to merge 2 commits intoraystef66:16.0from
agonbar wants to merge 2 commits intoraystef66:16.0from
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ksu_handle_sys_reboothook inkernel/reboot.c(required by new KSUN)drivers/Makefilefromobj-ytoobj-$(CONFIG_KSU)to match new KbuildCommit 2: Upgrade susfs from v1.5.5 to v2.1.0
fs/susfs.c,include/linux/susfs.h,include/linux/susfs_def.h) from sidex15's 4.19 kernel backport, adapted for 4.14fs/sus_su.c(sus_su feature removed in v2.0.0)fs/stat.chooks to v2.0.0 API (susfs_generic_fillattr_spoofer)#endifblocks infs/overlayfs/susfs_def.hfor v1.5.5 hooks not yet portedsusfs.cfor removed v1.5.5 functionsSUSFS v2.1.0 features
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
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 insusfs_def.h. These work correctly but could be incrementally updated to the v2.0.0 API in future commits for a cleaner implementation.