1

For example, the shastra says only people born as kshatriyas and who have done upanayanam can be military or police:
Manu 10.79 - For the Kṣatriya, carrying of arms and weapons. For the
Vaiśya, business, rearing cattle, and agriculture are the means of
livelihood, while giving donations, studyin...