The military service is mandatory in Switzerland and members of militia (basically every capable male) must keep the government issued rifle and ammunition at home. Upon completing the training the militiaman has the option to keep the weapon (modified to semi-automatic).
So, all males are evaluated before conscription and those who are find capable will receive ~20 weeks of training. If you want to buy another gun you need a permit. If you want to carry your gun you need another permit. If you are a working class ‘auslander’ good luck getting any of that.