Civ. Code § 8820 — under California Civ. Code.
Civ. Code § 8820
It is against public policy to waive the provisions of this article by contract.