The simplified version says you must carry a rifle outside town. The more accurate version is that authorities require appropriate protection or deterrence when travelling in areas with polar bear risk.
Source / verification note
Confirmed safety regime in Svalbard, simplified for tourists.