means that
withholding names can prevent people from being singled out for punishment. Pack drill refers to a historical military punishment.
Pack drill is a military punishment, in which someone is compelled to march up and down.
The saying “No names, no pack drill” can be used when it is better to keep quiet in order to avoid repercussions.