How did he get to take home the rifle because they usally dont let you take home stuff like canteens.
It'd be because at the end of the war, they would have had a ridiculous amount of weapons left, and even if they could keep track of them all, they probably wouldn't care about a few going missing.