From 372112cd4dab4ea6e7c6e4b6f18eb4cd044d434f Mon Sep 17 00:00:00 2001 From: chiteroman Date: Wed, 4 Sep 2024 01:10:35 +0200 Subject: [PATCH] Revert "Fix SELinux prop spoofing" This reverts commit cd7249510d5ba80a56e77317402a4028d9f8f4a3. --- module/service.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/service.sh b/module/service.sh index f94c9b7..5507926 100644 --- a/module/service.sh +++ b/module/service.sh @@ -23,7 +23,9 @@ resetprop_if_match vendor.boot.mode recovery unknown # Hiding SELinux | Permissive status resetprop_if_diff ro.boot.selinux enforcing -resetprop_if_diff ro.build.selinux 1 +if [ -n "$(resetprop ro.build.selinux)" ]; then + resetprop --delete ro.build.selinux +fi # Hiding SELinux | Use toybox to protect *stat* access time reading if [[ "$(toybox cat /sys/fs/selinux/enforce)" == "0" ]]; then