diff options
author | Alex Light <allight@google.com> | 2014-08-27 15:39:17 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2014-08-28 11:34:50 -0700 |
commit | 79bf4007f559e194205f632b23d2bfb6f8d1e7ba (patch) | |
tree | dba5c625b9c74e7dd9bdc3d7dc9e87b4df104157 /cmds/app_process | |
parent | 2d3571cc17a5a6b1072951227d889ce14a3f88cf (diff) | |
download | frameworks_base-79bf4007f559e194205f632b23d2bfb6f8d1e7ba.zip frameworks_base-79bf4007f559e194205f632b23d2bfb6f8d1e7ba.tar.gz frameworks_base-79bf4007f559e194205f632b23d2bfb6f8d1e7ba.tar.bz2 |
Change /dalvik-cache to be owned by root.
Bug: 16875245
Change-Id: I29a70215a2207bc4e0db02ab751d32a68edf4b66
Diffstat (limited to 'cmds/app_process')
-rw-r--r-- | cmds/app_process/app_main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp index 74ccbc2..6e77e13 100644 --- a/cmds/app_process/app_main.cpp +++ b/cmds/app_process/app_main.cpp @@ -161,17 +161,17 @@ static void maybeCreateDalvikCache() { LOG_ALWAYS_FATAL_IF((numChars >= PATH_MAX || numChars < 0), "Error constructing dalvik cache : %s", strerror(errno)); - int result = mkdir(dalvikCacheDir, 0771); + int result = mkdir(dalvikCacheDir, 0711); LOG_ALWAYS_FATAL_IF((result < 0 && errno != EEXIST), "Error creating cache dir %s : %s", dalvikCacheDir, strerror(errno)); // We always perform these steps because the directory might // already exist, with wider permissions and a different owner // than we'd like. - result = chown(dalvikCacheDir, AID_SYSTEM, AID_SYSTEM); + result = chown(dalvikCacheDir, AID_ROOT, AID_ROOT); LOG_ALWAYS_FATAL_IF((result < 0), "Error changing dalvik-cache ownership : %s", strerror(errno)); - result = chmod(dalvikCacheDir, 0771); + result = chmod(dalvikCacheDir, 0711); LOG_ALWAYS_FATAL_IF((result < 0), "Error changing dalvik-cache permissions : %s", strerror(errno)); } |