Searched refs:SUPP_ENTROPY_FILE (Results 1 – 1 of 1) sorted by relevance
/hardware/libhardware_legacy/wifi/ |
D | wifi.c | 124 static const char SUPP_ENTROPY_FILE[] = WIFI_ENTROPY_FILE; variable 300 ret = access(SUPP_ENTROPY_FILE, R_OK|W_OK); in ensure_entropy_file_exists() 303 (chmod(SUPP_ENTROPY_FILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP) != 0)) { in ensure_entropy_file_exists() 304 ALOGE("Cannot set RW to \"%s\": %s", SUPP_ENTROPY_FILE, strerror(errno)); in ensure_entropy_file_exists() 309 destfd = TEMP_FAILURE_RETRY(open(SUPP_ENTROPY_FILE, O_CREAT|O_RDWR, 0660)); in ensure_entropy_file_exists() 311 ALOGE("Cannot create \"%s\": %s", SUPP_ENTROPY_FILE, strerror(errno)); in ensure_entropy_file_exists() 316 ALOGE("Error writing \"%s\": %s", SUPP_ENTROPY_FILE, strerror(errno)); in ensure_entropy_file_exists() 323 if (chmod(SUPP_ENTROPY_FILE, 0660) < 0) { in ensure_entropy_file_exists() 325 SUPP_ENTROPY_FILE, strerror(errno)); in ensure_entropy_file_exists() 326 unlink(SUPP_ENTROPY_FILE); in ensure_entropy_file_exists() [all …]
|