I probably don't have to tell you this, but the intervention in Libya was properly sanctioned (as far as I know). Did anyone accuse the Gaddafi government of illegal action against the coalition / NATO?
No fly zone was sanctioned but NATO interpreted it to mean anything they wanted including arms drops.