Which philosophy taught the government should pass strict laws and enforce them with harsh punishments?

Karma
Daoism
Confucianism
Legalism