Cal. Health & Safety Code § 122335
(a) For purposes of this chapter, the following terms shall have the following definitions:
(c) Notwithstanding subdivision (b), a person may do any of the following in accordance with Section 597t of the Penal Code:
(5) Tether, fasten, chain, or tie a dog while actively engaged in any of the following:
(d) A person who violates this chapter is guilty of an infraction or a misdemeanor.