Use conservative permissions when creating files in ART am: d224e964bd Change-Id: I084a7c031c215ce9a18dbcccff42fd9d64fb6e01 (cherry picked from commit 70c59234bcd15f848eb06496d1ac0480a52fb978)
diff --git a/libartbase/base/os_linux.cc b/libartbase/base/os_linux.cc index cb228bd..c972f8f 100644 --- a/libartbase/base/os_linux.cc +++ b/libartbase/base/os_linux.cc
@@ -57,7 +57,8 @@ CHECK(name != nullptr); bool read_only = ((flags & O_ACCMODE) == O_RDONLY); bool check_usage = !read_only && auto_flush; - std::unique_ptr<File> file(new File(name, flags, 0666, check_usage)); + std::unique_ptr<File> file( + new File(name, flags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH, check_usage)); if (!file->IsOpened()) { return nullptr; }