You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Add more sepolicy
This commit is contained in:
@@ -82,6 +82,10 @@ extract "$ZIPFILE" 'sepolicy.rule' "$TMPDIR"
|
|||||||
|
|
||||||
if [ "$KSU" ]; then
|
if [ "$KSU" ]; then
|
||||||
ui_print "- Checking SELinux patches"
|
ui_print "- Checking SELinux patches"
|
||||||
|
if [ "$(getprop ro.product.first_api_level)" -lt 31 ]; then
|
||||||
|
echo "allow zygote appdomain_tmpfs file *" >> "$TMPDIR/sepolicy.rule"
|
||||||
|
echo "allow zygote appdomain_tmpfs dir *" >> "$TMPDIR/sepolicy.rule"
|
||||||
|
fi
|
||||||
if ! check_sepolicy "$TMPDIR/sepolicy.rule"; then
|
if ! check_sepolicy "$TMPDIR/sepolicy.rule"; then
|
||||||
ui_print "*********************************************************"
|
ui_print "*********************************************************"
|
||||||
ui_print "! Unable to apply SELinux patches!"
|
ui_print "! Unable to apply SELinux patches!"
|
||||||
@@ -93,8 +97,8 @@ fi
|
|||||||
ui_print "- Extracting module files"
|
ui_print "- Extracting module files"
|
||||||
extract "$ZIPFILE" 'module.prop' "$MODPATH"
|
extract "$ZIPFILE" 'module.prop' "$MODPATH"
|
||||||
extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
|
extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
|
||||||
extract "$ZIPFILE" 'sepolicy.rule' "$MODPATH"
|
|
||||||
extract "$ZIPFILE" 'service.sh' "$MODPATH"
|
extract "$ZIPFILE" 'service.sh' "$MODPATH"
|
||||||
|
mv "$TMPDIR/sepolicy.rule" "$MODPATH"
|
||||||
|
|
||||||
HAS32BIT=false && [ -d "/system/lib" ] && HAS32BIT=true
|
HAS32BIT=false && [ -d "/system/lib" ] && HAS32BIT=true
|
||||||
HAS64BIT=false && [ -d "/system/lib64" ] && HAS64BIT=true
|
HAS64BIT=false && [ -d "/system/lib64" ] && HAS64BIT=true
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ allow * magisk_file lnk_file *
|
|||||||
allow * magisk_file sock_file *
|
allow * magisk_file sock_file *
|
||||||
|
|
||||||
allow system_server system_server process execmem
|
allow system_server system_server process execmem
|
||||||
|
allow zygote adb_data_file dir search
|
||||||
allow zygote mnt_vendor_file dir search
|
allow zygote mnt_vendor_file dir search
|
||||||
allow zygote system_file dir mounton
|
allow zygote system_file dir mounton
|
||||||
allow zygote labeledfs filesystem mount
|
allow zygote labeledfs filesystem mount
|
||||||
|
|||||||
Reference in New Issue
Block a user