Closed nik2143 closed 3 years ago
Talked with mantainer that confirmed that don't use this rule Is there a way to check if the rule is there?
https://github.com/RikkaApps/Riru/issues/203#issuecomment-806343701
Use
magiskpolicy --save
to save current policies to a file and usesesearch
,sesearch --allow -s init -t system_file -p relabelfrom
, to check ifinit
has the permission.
Use
magiskpolicy --save
to save current policies to a file and usesesearch
,sesearch --allow -s init -t system_file -p relabelfrom
, to check ifinit
has the permission.
I tried the commands and I got 0 search results This mens that the rule isn't there?
Can you upload your policy dump?
Can you upload your policy dump?
The policy you provide doesn't seem to have problems. I'm wondering if app_process
cannot run on your device.
Try this build (https://github.com/RikkaApps/Riru/actions/runs/1043646760). You don't need to install the zip.
rirud.apk
from the zip to "somewhere"su
/system/bin/app_process -Djava.class.path="somewhere/rirud.apk" /system/bin --nice-name=riru_installer riru.Installer --check-selinux
greatlte:/ # su
greatlte:/ # /system/bin/app_process -Djava.class.path="/storage/emulated/0/rirud.apk" /system/bin --nice-name=riru_installer riru.Installer --check-selinux
- Start checks...
! Your ROM allows init to relabel Magisk module files
! Your ROM allows init to relabel Magisk module files
This is so weird. That check uses android.os.SELinux#checkSELinuxAccess
which will finally call selinux_check_access
from libselinux
. It should not report the different results from research.
Can you check the file context with ls -laZ /data/adb/modules/riru-core
?
Anyway, this check will not stop installation in the next version.
__
This is so weird. That check uses
android.os.SELinux#checkSELinuxAccess
which will finally callselinux_check_access
fromlibselinux
. It should not report the different results from research. Can you check the file context withls -laZ /data/adb/modules/riru-core
?Anyway, this check will not stop installation in the next version.
greatlte:/ # ls -laZ /data/adb/modules/riru-core
total 32
drwxr-xr-x 3 root root u:object_r:system_file:s0 4096 2021-07-12 16:48 .
drwxr-xr-x 9 root root u:object_r:system_file:s0 4096 2021-04-29 20:35 ..
-rw-r--r-- 1 root root u:object_r:system_file:s0 180 2020-08-16 17:20 module.prop
-rw-r--r-- 1 root root u:object_r:system_file:s0 1002 2020-08-16 17:20 post-fs-data.sh
-rw-r--r-- 1 root root u:object_r:system_file:s0 71 2020-08-16 17:20 sepolicy.rule
drwxr-xr-x 4 root root u:object_r:system_file:s0 4096 2020-08-16 17:20 system
-rw-r--r-- 1 root root u:object_r:system_file:s0 133 2020-08-16 17:20 uninstall.sh
-rw-r--r-- 1 root root u:object_r:system_file:s0 1575 2021-07-12 16:48 util_functions.sh
Anyway I want to confirm that installing the 26.0.3 everything work right
Information:
Logs:
Describe the bug:
I get the error Your ROM has incorrect SELinux rules but the rule that tell the page isn't there