summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSan Mehat2009-08-21 10:16:56 -0500
committerSan Mehat2009-08-21 10:47:42 -0500
commit85b3fcc5de004999756c1e90bcf845480217b3f6 (patch)
treec8ea12a53951b4e0a6f9ff46d4d2725f07f45b84
parente3baafd85a5fecd1714441455e3f75f26b5c381e (diff)
downloadplatform-system-core-android-1.6_r1.3.tar.gz
platform-system-core-android-1.6_r1.3.tar.xz
platform-system-core-android-1.6_r1.3.zip
system/core: vold: Change permission of external storage device nodesandroid-1.6_r1.4android-1.6_r1.3android-1.6_r1.2android-1.6_r1.1android-1.6_r1
Signed-off-by: San Mehat <san@google.com>
-rw-r--r--vold/blkdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vold/blkdev.c b/vold/blkdev.c
index 1482a1ac0..e10eafc80 100644
--- a/vold/blkdev.c
+++ b/vold/blkdev.c
@@ -219,7 +219,7 @@ static blkdev_t *_blkdev_create(blkdev_t *disk, char *devpath, int major,
219 219
220 /* Create device nodes */ 220 /* Create device nodes */
221 char nodepath[255]; 221 char nodepath[255];
222 mode_t mode = 0666 | S_IFBLK; 222 mode_t mode = 0660 | S_IFBLK;
223 dev_t dev = (major << 8) | minor; 223 dev_t dev = (major << 8) | minor;
224 224
225 sprintf(nodepath, "%s/vold/%d:%d", DEVPATH, major, minor); 225 sprintf(nodepath, "%s/vold/%d:%d", DEVPATH, major, minor);