Section 43  of the Criminal Code states that:

Correction of child by force

Every schoolteacher, parent or person standing in the place of a parent is justified in using force by way of correction toward a pupil or child, as the case may be, who is under his care, if the force does not exceed what is reasonable under the circumstances.