From 68e4339387a0fb74facefb69aeb35858f44ba7f1 Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Sun, 9 May 2021 15:02:42 -0700 Subject: [PATCH] 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 Signed-off-by: pix106 --- rootdir/etc/ueventd.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index c214b808..07c5db35 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -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