How far can the generalized second law be generalized?