Home
last modified time | relevance | path

Searched refs:relro_tmp (Results 1 – 1 of 1) sorted by relevance

/aosp14/frameworks/base/native/webview/loader/
H A Dloader.cpp80 char relro_tmp[strlen(relro) + sizeof(tmpsuffix)]; in DoCreateRelroFile() local
81 strlcpy(relro_tmp, relro, sizeof(relro_tmp)); in DoCreateRelroFile()
82 strlcat(relro_tmp, tmpsuffix, sizeof(relro_tmp)); in DoCreateRelroFile()
83 int tmp_fd = TEMP_FAILURE_RETRY(mkstemp(relro_tmp)); in DoCreateRelroFile()
85 ALOGE("Failed to create temporary file %s: %s", relro_tmp, strerror(errno)); in DoCreateRelroFile()
106 unlink(relro_tmp); in DoCreateRelroFile()
110 chmod(relro_tmp, S_IRUSR | S_IRGRP | S_IROTH) != 0 || in DoCreateRelroFile()
111 rename(relro_tmp, relro) != 0) { in DoCreateRelroFile()
113 unlink(relro_tmp); in DoCreateRelroFile()