The Navy permitted filming on its carriers and in its planes, and in most cases provided the aerial photography used in the dogfighting sequences.
By contrast, the CIA rejected every request for on-site filming until ***I believe*** Patriot Games came out, and that's only because they've come to like Tom Clancy. I also don't believe that NSA has ever permitted filming in their facilities.
The Navy was just as eagerly involved in Top Gun as NASCAR was in Top Gun II... er, I mean Days of Thunder.![]()