The Iraqi government has warned Israel that it would respond to any attempts by Tel Aviv to use Iraqi airspace for an attack on Iran.