update PERMIT_* stuff