OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b687581
)
Fix installd to create /data/data/<pkgname> with appropriate permissions.
author
David 'Digit' Turner
<digit@google.com>
Wed, 10 Feb 2010 03:02:38 +0000
(19:02 -0800)
committer
David 'Digit' Turner
<digit@google.com>
Wed, 10 Feb 2010 03:02:38 +0000
(19:02 -0800)
The directory was created with read+exec rights for others.
The patch restricts it to only exec rights.
cmds/installd/commands.c
patch
|
blob
|
history
diff --git
a/cmds/installd/commands.c
b/cmds/installd/commands.c
index
1e8555b
..
cd0302c
100644
(file)
--- 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, 075
5
) < 0) {
+ if (mkdir(pkgdir, 075
1
) < 0) {
LOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno));
return -errno;
}