Normalize permissions.