sdm710-common: rootdir: Hide Magisk Better

* Some banking apps read the file /proc/net/unix to
find out whether things like Magisk are installed/running.

To prevent that, chmod it 440.
This file isn't needed by any other process when boot is finished.

I've tested this and banking apps that did not work before
and recognized Magisk being installed now don't recognize
that and work just fine.
This commit is contained in:
srfarias 2021-04-23 01:37:54 +03:00 committed by CakesTwix
parent c302d25ba5
commit c57a990c78
Signed by: CakesTwix
GPG key ID: 7B11051D5CE19825

View file

@ -195,3 +195,8 @@ on property:init.svc.vendor.hwcomposer-2-3=restarting
on charger
setprop sys.usb.configfs 1
on property:sys.boot_completed=1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix