Skip to content

Commit

Permalink
Merge pull request #470 from DanGLES3/patch-1
Browse files Browse the repository at this point in the history
Remove Selinux Prop spoofing
  • Loading branch information
chiteroman authored Nov 16, 2024
2 parents bea32cf + bb1d419 commit e1ced60
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions module/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ resetprop_if_match vendor.boot.mode recovery unknown

# SELinux
resetprop_if_diff ro.boot.selinux enforcing
# use delete since it can be 0 or 1 for enforcing depending on OEM
if [ -n "$(resetprop ro.build.selinux)" ]; then
resetprop --delete ro.build.selinux
fi
# use toybox to protect stat access time reading
if [ "$(toybox cat /sys/fs/selinux/enforce)" = "0" ]; then
chmod 640 /sys/fs/selinux/enforce
Expand Down

0 comments on commit e1ced60

Please sign in to comment.