In South Africa, firearms belonging to pax would be taken from them at the security checkpoint and stowed on the flight deck. You get them back from baggage services on arrival.
Of course, you then have a problem if one of the pilots turns psycho ... and that's happened on a number of occasions!