What kinds of firearms (if any) are allowed on a submarine?

At least that would have had a better chance against polar bears.