The Apartheid Legislation (1850-1970) laws made it a criminal offence to breach the contract of employment. Desertion, insolence, drunkenness, negligence and strikes were also criminal offences. These were laws to enforce segregation. Universal suffrage on a non-racial basis was not possible untill at the end of Apartheid, in 1996.
It is Clause 39 of the Magna Carta that provides for the basis of the fifth amendment in this respect, since this was one of the defining pieces of the Magna Carta, which greatly limited the extent of royal power over citizens.