sdm660-common: rootdir: ueventd: Restrict permissions to DMA-BUF heap files to read-only

We currently set all heaps to have RWX permissions of 644. However,
libdmabufheap only opens the heap files as O_RDONLY. Reduce the
permissions to 444 accordingly.

Additionally, stop overriding the default permissions given to the
system, system-uncached and system-secure heaps (which all have RWX
perrmissions of 444).

Change-Id: Icc6159acc494ab169a6d04fd86732c1b126e7b15
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
This commit is contained in:
Chris Goldsworthy 2021-05-09 15:02:42 -07:00 committed by pix106
parent dc06377327
commit 68e4339387

View file

@ -51,7 +51,7 @@ subsystem mem_buf_vm
/dev/ion 0664 system system
/dev/membuf 0664 system system
/dev/mem_buf_vm/* 0660 system system
/dev/dma_heap/* 0664 system system
/dev/dma_heap/qcom,* 0444 system system
/dev/rtc0 0660 system system
/dev/smd0 0660 system system
/dev/smd4 0660 system system