Merge pull request #405 from salvogiangri/main

Fix SELinux prop spoofing
This commit is contained in:
Marcos 2024-08-19 13:21:22 +02:00 committed by GitHub
commit c671450d12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,9 +23,7 @@ resetprop_if_match vendor.boot.mode recovery unknown
# Hiding SELinux | Permissive status
resetprop_if_diff ro.boot.selinux enforcing
if [ -n "$(resetprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux
fi
resetprop_if_diff ro.build.selinux 1
# Hiding SELinux | Use toybox to protect *stat* access time reading
if [[ "$(toybox cat /sys/fs/selinux/enforce)" == "0" ]]; then