summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Zavin2009-09-10 14:32:40 -0500
committerDima Zavin2009-09-10 14:34:32 -0500
commitc2d8e0e701dc460b1ff8f664210644a0f5ca7515 (patch)
tree3afbb25299f5862906e59efb651fb4801dfca6c6 /init/devices.c
parent8b213f1ad950c0d115a8d5a3016a267432b3c980 (diff)
downloadplatform-system-core-c2d8e0e701dc460b1ff8f664210644a0f5ca7515.tar.gz
platform-system-core-c2d8e0e701dc460b1ff8f664210644a0f5ca7515.tar.xz
platform-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/devices.c')
-rw-r--r--init/devices.c5
1 files changed, 4 insertions, 1 deletions
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[] = {
101 /* gpu driver for adreno200 is globally accessible */ 101 /* gpu driver for adreno200 is globally accessible */
102 { "/dev/kgsl", 0666, AID_ROOT, AID_ROOT, 0 }, 102 { "/dev/kgsl", 0666, AID_ROOT, AID_ROOT, 0 },
103 103
104 /* STOPSHIP: temporarily make this be writable by all. We need to
105 * remove this entirely before we ship. */
106 { "/dev/pmem_gpu", 0666, AID_ROOT, AID_ROOT, 1 },
107
104 /* these should not be world writable */ 108 /* these should not be world writable */
105 { "/dev/diag", 0660, AID_RADIO, AID_RADIO, 0 }, 109 { "/dev/diag", 0660, AID_RADIO, AID_RADIO, 0 },
106 { "/dev/diag_arm9", 0660, AID_RADIO, AID_RADIO, 0 }, 110 { "/dev/diag_arm9", 0660, AID_RADIO, AID_RADIO, 0 },
@@ -117,7 +121,6 @@ static struct perms_ devperms[] = {
117 { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 }, 121 { "/dev/eac", 0660, AID_ROOT, AID_AUDIO, 0 },
118 { "/dev/cam", 0660, AID_ROOT, AID_CAMERA, 0 }, 122 { "/dev/cam", 0660, AID_ROOT, AID_CAMERA, 0 },
119 { "/dev/pmem", 0660, AID_SYSTEM, AID_GRAPHICS, 0 }, 123 { "/dev/pmem", 0660, AID_SYSTEM, AID_GRAPHICS, 0 },
120 { "/dev/pmem_gpu", 0660, AID_SYSTEM, AID_GRAPHICS, 1 },
121 { "/dev/pmem_adsp", 0660, AID_SYSTEM, AID_AUDIO, 1 }, 124 { "/dev/pmem_adsp", 0660, AID_SYSTEM, AID_AUDIO, 1 },
122 { "/dev/pmem_camera", 0660, AID_SYSTEM, AID_CAMERA, 1 }, 125 { "/dev/pmem_camera", 0660, AID_SYSTEM, AID_CAMERA, 1 },
123 { "/dev/oncrpc/", 0660, AID_ROOT, AID_SYSTEM, 1 }, 126 { "/dev/oncrpc/", 0660, AID_ROOT, AID_SYSTEM, 1 },