In Hinduism, a person's dharma, or set of spiritual duties and obligations is based on

Athe Vedas.
Bbad karma.
Cdedication to Vishnu.
Dtheir class and station in life.