Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SELinux rules from the NeoZygisk side (#7)
Even though JingMatrix/LSPosed#143 has added missing SELinux rules from the LSPosed. Different root implementations load rules in different orders, which is a source of SELinux rules application failures. To avoid them, we'd better fix SELinux rules from the NeoZygisk side. We deleted the original block of rules for unmounting, since current implementation of DenyList is based on the chroot permission. The two added rules for LSPosed are found using SELinux logs: ``` adb shell su -c setenforce 0 && adb shell su -c 'cat /proc/kmsg | grep avc' ``` Note: Even though the SELinux context magisk_file is protected by DAC, we still prefer to be cautious and conservative by not adding the rule `allow * magisk_file {file dir} *` directly.
- Loading branch information