diff options
author | Jessica Wagantall <jwagantall@cyngn.com> | 2016-04-05 12:31:57 -0700 |
---|---|---|
committer | Jessica Wagantall <jwagantall@cyngn.com> | 2016-04-05 12:31:57 -0700 |
commit | b952b460a7f7a738edf37a5998071dbc7a0bc0a8 (patch) | |
tree | 6e8fade00330c8d6956d6f4ffcad783c628d5028 /debuggerd | |
parent | 40a38897b450093b61719015d8f8b6fa80f31595 (diff) | |
parent | 2a288d0f331c1abdf5f74fe707a30ce41af1dda6 (diff) | |
download | system_core-b952b460a7f7a738edf37a5998071dbc7a0bc0a8.zip system_core-b952b460a7f7a738edf37a5998071dbc7a0bc0a8.tar.gz system_core-b952b460a7f7a738edf37a5998071dbc7a0bc0a8.tar.bz2 |
Merge tag 'android-6.0.1_r24' into HEAD
Ticket: CYNGNOS-2213
Android 6.0.1 release 24
Diffstat (limited to 'debuggerd')
-rw-r--r-- | debuggerd/tombstone.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index b0ad274..aeffc66 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -788,21 +788,8 @@ char* engrave_tombstone(pid_t pid, pid_t tid, int signal, int original_si_code, log.current_tid = tid; log.crashed_tid = tid; - if ((mkdir(TOMBSTONE_DIR, 0755) == -1) && (errno != EEXIST)) { - _LOG(&log, logtype::ERROR, "failed to create %s: %s\n", TOMBSTONE_DIR, strerror(errno)); - } - - if (chown(TOMBSTONE_DIR, AID_SYSTEM, AID_SYSTEM) == -1) { - _LOG(&log, logtype::ERROR, "failed to change ownership of %s: %s\n", TOMBSTONE_DIR, strerror(errno)); - } - int fd = -1; - char* path = NULL; - if (selinux_android_restorecon(TOMBSTONE_DIR, 0) == 0) { - path = find_and_open_tombstone(&fd); - } else { - _LOG(&log, logtype::ERROR, "Failed to restore security context, not writing tombstone.\n"); - } + char* path = find_and_open_tombstone(&fd); if (fd < 0) { _LOG(&log, logtype::ERROR, "Skipping tombstone write, nothing to do.\n"); |