It depends on the state and its local laws. As a general rule, a person cannot carry a gun legally unless the person has a gun permit or is a commissioned officer of some sort.
The FBI use a Glock 22,23 as a side arm , a Glock 26 as a backupThe CIA use Glocks, as well as P226, P228, P229 Standard/DAKs and M1911 (The modern version)