sm6225-common: init: Set permissions to rawdump node

Move permission setting logic from init rc file to ueventd rc file.

Change-Id: I4b94e0e188f8b420a608cc2e0d97e4b960381c31
This commit is contained in:
Nagireddy Annem 2022-02-24 16:57:25 +05:30 committed by Michael Bestas
parent 3a99687186
commit 7d981302e6
No known key found for this signature in database
GPG key ID: CC95044519BE6669
2 changed files with 4 additions and 3 deletions

View file

@ -174,9 +174,7 @@ on boot
# bond0 used by FST Manager # bond0 used by FST Manager
chown wifi wifi /sys/class/net/bond0/bonding/queue_id chown wifi wifi /sys/class/net/bond0/bonding/queue_id
# Allow access to emmc rawdump block partition and dload sysfs node # Allow access to emmc dload sysfs node
chown root system /dev/block/bootdevice/by-name/rawdump
chmod 0660 /dev/block/bootdevice/by-name/rawdump
chown root system /sys/kernel/dload/emmc_dload chown root system /sys/kernel/dload/emmc_dload
chmod 0660 /sys/kernel/dload/emmc_dload chmod 0660 /sys/kernel/dload/emmc_dload
chown root system /dev/block/bootdevice/by-name/ramdump chown root system /dev/block/bootdevice/by-name/ramdump

View file

@ -180,6 +180,9 @@ firmware_directories /vendor/firmware_mnt/image/
/dev/bus/usb/* 0660 root usb /dev/bus/usb/* 0660 root usb
/dev/hidraw* 0660 root usb /dev/hidraw* 0660 root usb
#rawdump
/dev/block/platform/soc/*/by-name/rawdump 0660 root system
# Trustonic TEE device # Trustonic TEE device
/dev/mobicore 0600 system system /dev/mobicore 0600 system system
/dev/mobicore-user 0666 system system /dev/mobicore-user 0666 system system