Second law violations, continuum mechanics, and permeability