Journalists who don't abide by the policy risk losing credentials that provide access to the Pentagon.