From 0dd50e61267818b4cba0453c2abe18a77d3f6f66 Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Tue, 9 Feb 2010 19:02:38 -0800 Subject: [PATCH] Fix installd to create /data/data/ with appropriate permissions. The directory was created with read+exec rights for others. The patch restricts it to only exec rights. --- cmds/installd/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmds/installd/commands.c b/cmds/installd/commands.c index 1e8555be91b10..cd0302c22225d 100644 --- a/cmds/installd/commands.c +++ b/cmds/installd/commands.c @@ -39,7 +39,7 @@ int install(const char *pkgname, int encrypted_fs_flag, uid_t uid, gid_t gid) return -1; } - if (mkdir(pkgdir, 0755) < 0) { + if (mkdir(pkgdir, 0751) < 0) { LOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno)); return -errno; }