A holster engages the ejection port of a gun to secure the gun in the holster. The holster includes a spine with a fixed upper section, a fixed lower section, and an intermediate section bridging the upper and lower sections. The intermediate section includes a rib which can extend into the ejection port of the gun. The intermediate section is pivotally attached to the fixed upper section of the spine and pivots between a first closed operative position in which the rib extends into the ejection port of the gun and a second open operative position in which the rib is removed from the ejection port so the gun can be removed from the holster.