Sverige kämpar med sin kanske viktigaste uppgift: att upprätthålla den inre säkerheten.