Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
According to the SELinux logs, one rule is needed to write to the mangaer's sharedpreference.
- Loading branch information
According to the SELinux logs, one rule is needed to write to the mangaer's sharedpreference.
dd3aea8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think issue comes from here:
LSPosed/daemon/src/main/java/org/lsposed/lspd/service/ConfigFileManager.java
Line 460 in dd3aea8
u:object_r:magisk_file:s0 serves as a object that everyone can write to in lsposed and there are still other usages for it.
dd3aea8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for remarking it, I haven't noticed it before.
From the logs in #146, LSPosed has to stop abusing this SELinux context label reserved for Zygisk implementation.
dd3aea8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Original reason for lsposed abusing it is there are some users with broken root implementation and fails to apply rules in sepolicy.rule according to report. I think these conditions have decreased since then.