other sons, Cush and Put, most likely settled. Noah's curse only applied to Canaan, and according to biblical commentator, Gleason L. Archer, this curse was fulfilled when Joshua conquered Canaan in 1400 BC. Although there is considerable doubt about the nature and extent of the conquest described in the early chapters of the book of Joshua, the post-Flood story did supply a rationale for the subjugation of the Canaanites. It is possible that the naming of 'Canaan' in the post-Flood story is itself a reflection of the situation of warfare between peoples in the time when the written form of the story took shape. Some forms of servitude, customary in ancient times, were condoned by the Torah. Hebrew legislation maintained kinship rights (Exodus 21:3, 9, Leviticus 25:41, 47–49, 54, providing for Hebrew indentured servants), marriage rights (Exodus 21:4, 10–11, providing for a Hebrew daughter contracted into a marriage), personal legal rights relating to physical protection and protection from breach of conduct (Exodus 21:8, providing for a Hebrew daughter contracted into a marriage, Exodus 21:20-21, 26–27, providing for Hebrew or foreign servants of any kind, and Leviticus 25:39-41, providing for Hebrew indentured servants), freedom of movement, and access to liberty. Hebrews would be punished if they beat a slave causing death within a day or two, and would have to let a slave go free if they were to destroy a slave's eye or tooth, force a slave to work on the Sabbath, return an escaped slave of another people who had taken refuge among the Israelites, or to slander a slave. It was common for a person to voluntarily sell oneself into slavery for a fixed period of time either to pay off debts or to get food and shelter. It was seen as legitimate to enslave captives obtained through warfare, but not through kidnapping for the purpose of enslaving them. Children could also be sold into debt bondage, which was sometimes ordered by a court of law. The Bible does set minimum rules for the conditions under which slaves were to be kept. Slaves were to be treated as part of an extended family; they were allowed to celebrate the Sukkot festival, and expected to honor Shabbat. Israelite slaves could not be compelled to work with rigor, and debtors who sold themselves as slaves to their creditors had to be treated the same as a hired servant. If a