From e6e75379157cb29dcb51abf416744a4669024ae2 Mon Sep 17 00:00:00 2001 From: Naman Jain Date: Fri, 28 Jan 2022 10:28:59 +0530 Subject: [PATCH] sm8450-common: rootdir: ueventd: set permissions to rawdump node move permission setting logic from init rc file to ueventd rc file. Change-Id: Ifbb555affd9200eb3d2fb3e405fc81a266df9f5e --- rootdir/etc/init.qcom.rc | 4 +--- rootdir/etc/ueventd.qcom.rc | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 9790c52..1ed91d0 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -163,9 +163,7 @@ on boot # bond0 used by FST Manager chown wifi wifi /sys/class/net/bond0/bonding/queue_id - # Allow access to emmc rawdump block partition and dload sysfs node - chown root system /dev/block/bootdevice/by-name/rawdump - chmod 0660 /dev/block/bootdevice/by-name/rawdump + # Allow access to dload sysfs node chown root system /sys/kernel/dload/emmc_dload chmod 0660 /sys/kernel/dload/emmc_dload chown root system /dev/block/bootdevice/by-name/ramdump diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index b3902fe..529fcd7 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -366,6 +366,8 @@ subsystem mem_buf_vm /dev/block/platform/soc/7c4000.sdhci/by-name/frp 0600 system system /dev/block/platform/soc/4744000.sdhci/by-name/frp 0600 system system /dev/block/platform/soc/4804000.ufshc/by-name/frp 0600 system system +/dev/block/platform/soc/7c4000.sdhci/by-name/rawdump 0660 root system +/dev/block/platform/soc/1d84000.ufshc/by-name/rawdump 0660 root system # This is temporary while using SD card for initial bring-up /dev/block/platform/soc/8804000.sdhci/by-name/frp 0600 system system