As long as Norway
can import food, there is no problem. That is not what food security is about in the case of Norway - we're wealthy, we can outbid "anyone" for food if need be.
The issue is what if we can't. As I've pointed out elsewhere in this thread, this has happened - the most well known instance being the British 5 year naval blockade during the Napoleonic wars, which caused years of famine, and death.
And because of Norway's extremely strategic position, with a long coast line and many defensible ports if you have naval superiority, coupled with huge oil industry, and a position to lock the Russian Northern fleet out of the Atlantic, any defence planning for Norway is going to assume that in the case of another war, Norway will either be occupied or attempted blockaded or both.
Then the situation changes. Norway has very little arable land due to the mountains, so it is not a given that taking the dairy away would leave us with sufficient food in the case of a blockade. Certainly during the British blockade we did not have enough food to sustain a much smaller population.