aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2009-09-10 12:32:40 -0700
committerDima Zavin <dima@android.com>2009-09-10 12:34:32 -0700
commitc2d8e0e701dc460b1ff8f664210644a0f5ca7515 (patch)
tree3afbb25299f5862906e59efb651fb4801dfca6c6 /init
parent8b213f1ad950c0d115a8d5a3016a267432b3c980 (diff)
downloadsystem_core-c2d8e0e701dc460b1ff8f664210644a0f5ca7515.tar.gz
system_core-c2d8e0e701dc460b1ff8f664210644a0f5ca7515.tar.bz2
system_core-c2d8e0e701dc460b1ff8f664210644a0f5ca7515.zip
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 <dima@android.com>
Diffstat (limited to 'init')
-rw-r--r--init/devices.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index ea77cf3b..c2c9353c 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 },