Skip to content

Commit

Permalink
Fix SELinux prop spoofing
Browse files Browse the repository at this point in the history
Signed-off-by: Salvo Giangreco <[email protected]>
  • Loading branch information
salvogiangri committed Aug 19, 2024
1 parent 3d8e7d3 commit cd72495
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions module/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd72495

Please sign in to comment.