Was Shostakovich a dissident or a lackey?

Was Shostakovich a dissident or a lackey?