Make sure we keep permissions sane.