diff --git a/libappfuse/tests/FuseBufferTest.cc b/libappfuse/tests/FuseBufferTest.cc index db35d330d..1a1abd57e 100644 --- a/libappfuse/tests/FuseBufferTest.cc +++ b/libappfuse/tests/FuseBufferTest.cc @@ -31,7 +31,7 @@ namespace fuse { constexpr char kTempFile[] = "/data/local/tmp/appfuse_test_dump"; void OpenTempFile(android::base::unique_fd* fd) { - fd->reset(open(kTempFile, O_CREAT | O_RDWR)); + fd->reset(open(kTempFile, O_CREAT | O_RDWR, 0600)); ASSERT_NE(-1, *fd) << strerror(errno); unlink(kTempFile); ASSERT_NE(-1, *fd) << strerror(errno);