Cal. Penal Code § 171c
(a)
(2) Any person who brings or possesses, within the State Capitol, any legislative office, any hearing room in which any committee of the Senate or Assembly is conducting a hearing, the Legislative Office Building at 1020 N Street in the City of Sacramento, the state office building at 1021 O Street in the City of Sacramento, or upon the grounds of the State Capitol, which is bounded by 10th, L, 15th, and N Streets in the City of Sacramento, any of the following, is guilty of a misdemeanor punishable by imprisonment in a county jail for a period not to exceed one year, or by a fine not exceeding one thousand dollars ($1,000), or by both that fine and imprisonment, if the area is posted with a statement providing reasonable notice that prosecution may result from possession of any of these items:
(b) Subdivision (a) shall not apply to, or affect, any of the following:
(c)