Add execmem SELinux rule for system_server#560
Conversation
In commit 3d11c2f, the rule execmem is removed without explanation, possibly because that it is by default allowed for nearly all devices. However, from user bug report, this rule is missing on `Realme X7 Max 5G` (realme/RMX3031/RMX3031L1:13/TP1A.220905.001/R.ead5d5-5fba), causing the function `shouldSkipSystemServer` in `ConfigManager.java` returning true. We add it back to support our IPC bridge injection into system_server.
|
@xCaptaiN09, please test the latest CI to see if your issue is fixed: https://github.com/JingMatrix/LSPosed/actions/runs/22826955140 |
|
@xCaptaiN09, if it is still not work, you should change your root solution (KenerlSU). The |
Okay.. I will try to change root solution then .. Here is logs avc: denied { read } for comm="main" dev="nsfs" scontext=u:r:zygote:s0 tcontext=u:object_r:unlabeled:s0 USER_NS is disabled on my kernel btw. |
|
@xCaptaiN09 The reason of crahsing doesn't change. You should use the official KernelSU. There is no reason to blindly trust some variants without understanding it at all. Be cautious and responsible for your choice. Curcial logs: |
fixed the execmem issue, but still crashing... I checked more deeper and looks like lsplant is trying to write to a sealed ART JIT page. android 16 seals those with F_SEAL_WRITE so the write fails. is this a lsplant limitation on android 16 W^X or am i missing something....?? |
|
@xCaptaiN09 Upload your logs, and provide information how you fixed the execmem issue. |
fixed execmem by making a separate module that runs ksud sepolicy apply on all module sepolicy rules at boot... |
|
Please upload LSPosed logs as before. |
lspd.zip Actually what's the problem, who can fix?. Is it kernel side problem or lsposed or zygisk or Android side? |
SELinux continues to deny access to execmem if you are using the build that JingMatrix asked you to download and this error is still occurring.It's most likely a problem with your SukiSU root manager.Does the release version work for you? |
|
@xCaptaiN09 It is the problem of your root solution, you can fix it by abandon SukiSU and use other alternatives. |
Thankyou, |
|
@xCaptaiN09 I'd thus suggest you to try all variants you found and report this issue to them actively. |
In commit 3d11c2f, the rule execmem is removed without explanation, possibly because that it is by default allowed for nearly all devices.
However, from user bug report, this rule is missing on
Realme X7 Max 5G(realme/RMX3031/RMX3031L1:13/TP1A.220905.001/R.ead5d5-5fba), causing the functionshouldSkipSystemServerinConfigManager.javareturning true.We add it back to support our IPC bridge injection into system_server.