That's not exactly what's happening.
>>The rules limit where reporters can go without an official escort and convey “an unprecedented message of intimidation” for anyone in the Defense Department who might want to speak to a reporter without the approval of Hegseth’s team
On NPR (National Public Radio) a few days ago, a reporter said they could wander the halls of the Pentagon and ask anyone they ran into any question about anything. This will not be allowed anymore and, considering it's the Pentagon, doesn't seem unreasonable to me.