fix: avoid custom zygisk SELinux type on KSU#2
Draft
larsmartens wants to merge 1 commit into
Draft
Conversation
4e04c61 to
4e804be
Compare
4e804be to
1f00729
Compare
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
zygisk_fileSELinux type from the module policyadb_data_fileandsystem_filelabels used by the staged NeoZygisk pathsystem_fileinstead of the unmapped custom typeContext
On the Pixel 7 Pro Android 16 KernelSU setup, NeoZygisk reports
monitor: stopped(zygote crashed)and fails remotedlopenwith a misleadinglibzygisk.so not founderror. The file exists, has the correct arm64 ABI, and only depends on platform libraries.The useful boot evidence is SELinux/KSU-side:
That points to policy batch rejection and missing zygote traversal rights, not a missing library, ABI mismatch, or missing dependency.
Validation
ksud sepolicy check module/src/sepolicy.rulepasses on devicegit diff --checkpassesTest artifact
Local test ZIP copied to Downloads on the device:
/sdcard/Download/NeoZygisk-v2.3-340-4e04c61-ksu-sepolicy-fix-release.zipSHA256:
05c401eb21126a73820f436474ff0d5abfbed3f86842c6462125e0b5736e0459Runtime test plan
Do not use manual
zygisk-ptrace trace --restartfor validation. Install the ZIP through KernelSU, reboot normally, then check:zygisk_fileunmapped-context warningapp_process64 name="adb"AVC denialmonitor: stopped(zygote crashed)libzygisk.so