What is being liberated?

All the Buddhas, all the great practitioners of the past, how did they attain Buddhahood? Through realizing their own inner minds. And what is being liberated? The afflictions, the confused mind, the afflicted mind, the mind that sleeps, the one that eats, the one that wants to drink water.