From c2d8e0e701dc460b1ff8f664210644a0f5ca7515 Mon Sep 17 00:00:00 2001 From: Dima Zavin Date: Thu, 10 Sep 2009 12:32:40 -0700 Subject: [PATCH] init: Make /dev/pmem_gpu* be writable by all STOPSHIP: The actual device entry needs to be removed once the products that use this switch on the mmu. Change-Id: I10afea36c8731d845382665ed3db7647f68d1276 Signed-off-by: Dima Zavin --- init/devices.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/init/devices.c b/init/devices.c index ea77cf3b7..c2c9353c7 100644 --- a/init/devices.c +++ b/init/devices.c @@ -101,6 +101,10 @@ static struct perms_ devperms[] = { /* gpu driver for adreno200 is globally accessible */ { "/dev/kgsl", 0666, AID_ROOT, AID_ROOT, 0 }, + /* STOPSHIP: temporarily make this be writable by all. We need to + * remove this entirely before we ship. */ + { "/dev/pmem_gpu", 0666, AID_ROOT, AID_ROOT, 1 }, + /* these should not be world writable */ { "/dev/diag", 0660, AID_RADIO, AID_RADIO, 0 }, { "/dev/diag_arm9", 0660, AID_RADIO, AID_RADIO, 0 }, @@ -117,7 +121,6 @@ static struct perms_ devperms[] = { { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 }, { "/dev/cam", 0660, AID_ROOT, AID_CAMERA, 0 }, { "/dev/pmem", 0660, AID_SYSTEM, AID_GRAPHICS, 0 }, - { "/dev/pmem_gpu", 0660, AID_SYSTEM, AID_GRAPHICS, 1 }, { "/dev/pmem_adsp", 0660, AID_SYSTEM, AID_AUDIO, 1 }, { "/dev/pmem_camera", 0660, AID_SYSTEM, AID_CAMERA, 1 }, { "/dev/oncrpc/", 0660, AID_ROOT, AID_SYSTEM, 1 },