I live un military housing and I am allowed to store them in housing. However, I can only transport them on and off if they are locked in a container and separated from ammo. Obviously this is somewhat impractical for EDC. Constantly stopping and loading/unloading is a huge pain.
There have been movements afoot to prohibit any firearms on posts in a response to the suicide problem that the military is experiencing. The running thought is if you eliminate the guns, then it cuts down on the percentage of suicides that occur on post with guns.