From: Nolen Johnson Date: Tue, 27 Jul 2021 20:03:38 +0000 (-0400) Subject: g12: init-files: Remove uncessary debugging entries X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55dedd3a86ab8f65d98ad3f6576847e4cbee1f90;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12: init-files: Remove uncessary debugging entries * AOSP defaults to level 3, so no need to set it ourselves. * We don't need to set global read on these debugging nodes. * We ought to be restricting `dmesg` to root for security reasons. Change-Id: Ifa6677d4a4afee5281267ee0a3bfce0b5f4f3daf --- diff --git a/init-files/init.amlogic.board.rc b/init-files/init.amlogic.board.rc index 751adb0..08e5e3b 100644 --- a/init-files/init.amlogic.board.rc +++ b/init-files/init.amlogic.board.rc @@ -1,9 +1,6 @@ import /vendor/etc/init/hw/init.amlogic.usb.rc import /vendor/etc/init/hw/init.amlogic.tb_detect.rc -on early-init - loglevel 3 - on post-fs-data insmod /vendor/lib/modules/mali.ko insmod /vendor/lib/modules/dovi.ko diff --git a/init-files/init.amlogic.rc b/init-files/init.amlogic.rc index 2705833..dba018d 100644 --- a/init-files/init.amlogic.rc +++ b/init-files/init.amlogic.rc @@ -5,14 +5,9 @@ import /vendor/etc/init/hw/init.amlogic.media.rc import /vendor/etc/init/hw/init.amlogic.wifi_buildin.rc import /vendor/etc/init/cppreopts_amlogic.rc -on early-init - mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755 - mount proc proc /proc remount hidepid=2,gid=3009 - on init # Support legacy paths symlink /sdcard /mnt/sdcard - start console # 30 means reserve 3% memory using for high water mark, 1GB DDR x 3% = 30MB write /proc/sys/vm/watermark_scale_factor 30 # 12288 KB @@ -53,11 +48,6 @@ on boot write /sys/class/vfm/map "rm default" write /sys/class/vfm/map "add default decoder ppmgr deinterlace amvideo" - # 0: normal user and root user can read - # 1: only root user can read - write /proc/sys/kernel/dmesg_restrict 0 - - service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 /mnt/media_rw/sdcard1 /storage/sdcard1 class late_start disabled