Ethics of selective restriction of liberty in a pandemic