sm7250-common: add nodes to hide Magisk in banking apps

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.

Signed-off-by: aswin7469 <aswinas@pixysos.com>
This commit is contained in:
srfarias
2021-04-23 01:37:54 +03:00
committed by Sandeep P S
parent 19b503385a
commit 241e47a986

View File

@@ -1016,3 +1016,8 @@ service vendor.audio-hal /vendor/bin/hw/android.hardware.audio.service
ioprio rt 4
writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks
onrestart restart audioserver
on property:sys.boot_completed=1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix