Loading debuggerd/tombstoned/tombstoned.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -156,6 +156,11 @@ class CrashQueue { result.temporary_path = std::move(tmp_filename); result.temporary_path = std::move(tmp_filename); } } // We need to fchmodat after creating to avoid getting the umask applied. std::string fd_path = StringPrintf("/proc/self/fd/%d", result.fd.get()); if (fchmodat(dir_fd_, fd_path.c_str(), 0664, 0) != 0) { PLOG(ERROR) << "Failed to make tombstone world-readable"; } return std::move(result); return std::move(result); } } Loading rootdir/init.rc +1 −1 Original line number Original line Diff line number Diff line Loading @@ -709,7 +709,7 @@ on post-fs-data # Start tombstoned early to be able to store tombstones. # Start tombstoned early to be able to store tombstones. mkdir /data/anr 0775 system system encryption=Require mkdir /data/anr 0775 system system encryption=Require mkdir /data/tombstones 0771 system system encryption=Require mkdir /data/tombstones 0775 system system encryption=Require mkdir /data/vendor/tombstones 0771 root root mkdir /data/vendor/tombstones 0771 root root mkdir /data/vendor/tombstones/wifi 0771 wifi wifi mkdir /data/vendor/tombstones/wifi 0771 wifi wifi start tombstoned start tombstoned Loading Loading
debuggerd/tombstoned/tombstoned.cpp +5 −0 Original line number Original line Diff line number Diff line Loading @@ -156,6 +156,11 @@ class CrashQueue { result.temporary_path = std::move(tmp_filename); result.temporary_path = std::move(tmp_filename); } } // We need to fchmodat after creating to avoid getting the umask applied. std::string fd_path = StringPrintf("/proc/self/fd/%d", result.fd.get()); if (fchmodat(dir_fd_, fd_path.c_str(), 0664, 0) != 0) { PLOG(ERROR) << "Failed to make tombstone world-readable"; } return std::move(result); return std::move(result); } } Loading
rootdir/init.rc +1 −1 Original line number Original line Diff line number Diff line Loading @@ -709,7 +709,7 @@ on post-fs-data # Start tombstoned early to be able to store tombstones. # Start tombstoned early to be able to store tombstones. mkdir /data/anr 0775 system system encryption=Require mkdir /data/anr 0775 system system encryption=Require mkdir /data/tombstones 0771 system system encryption=Require mkdir /data/tombstones 0775 system system encryption=Require mkdir /data/vendor/tombstones 0771 root root mkdir /data/vendor/tombstones 0771 root root mkdir /data/vendor/tombstones/wifi 0771 wifi wifi mkdir /data/vendor/tombstones/wifi 0771 wifi wifi start tombstoned start tombstoned Loading