Searched refs:target_dir_fd (Results 1 – 1 of 1) sorted by relevance
53 int target_dir_fd; member61 c->target_dir_fd = safe_close(c->target_dir_fd); in import_credentials_context_free()69 if (c->target_dir_fd >= 0) in acquire_encrypted_credential_directory()70 return c->target_dir_fd; in acquire_encrypted_credential_directory()76 … c->target_dir_fd = open(ENCRYPTED_SYSTEM_CREDENTIALS_DIRECTORY, O_RDONLY|O_DIRECTORY|O_CLOEXEC); in acquire_encrypted_credential_directory()77 if (c->target_dir_fd < 0) in acquire_encrypted_credential_directory()80 return c->target_dir_fd; in acquire_encrypted_credential_directory()83 static int open_credential_file_for_write(int target_dir_fd, const char *dir_name, const char *n) { in open_credential_file_for_write() argument86 assert(target_dir_fd >= 0); in open_credential_file_for_write()90 fd = openat(target_dir_fd, n, O_WRONLY|O_CLOEXEC|O_CREAT|O_EXCL|O_NOFOLLOW, 0400); in open_credential_file_for_write()[all …]