universal7885: 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.

226e285aa6
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-11-03 17:45:10 +09:00
commit c7b6d4e7b5
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -8,3 +8,9 @@ on init
on boot
# Permissions for NAD
symlink /dev/block/platform/13500000.dwmmc0/by-name/nad_refer /dev/block/nad_refer
on property:sys.boot_completed=1
# Restrict permissions to socket file
# to hide Magisk & co.
chmod 440 /proc/net/unix