Yes, I forgot to mention govt buildings, where firearms are prohibited.
Definition of a "state or local building" from 171(b), subsection (c):
171(c) refers to the state capitol; 171(d) refers to the Governor's mansion; 626.9, 626.95, and 626.10 refer to schools, colleges, and universities. (Though carrying a firearm in all these places is exempt from 171(b), they are all prohibited areas due to the provisions of the referenced sections.)
As used in this section, "state or local public building" means a building that meets all of the following criteria:
(1) It is a building or part of a building owned or leased by the state or local government, if state or local public employees are regularly present for the purposes of performing their official duties. A state or local public building includes, but is not limited to, a building that contains a courtroom.
(2) It is not a building or facility, or a part thereof, that is referred to in Section 171c, 171d, 626.9, 626.95, or 626.10 of this code, or in Section 18544 of the Elections Code.
(3) It is a building not regularly used, and not intended to be used, by state or local employees as a place of residence.
Elections Code 18544 talks about polling places. The statute is poorly written, so it's unclear (to me) what the statute means. (I think we discussed this back in October/November of '08, but I'm still not sure...)
If I read it correctly, 18544 prohibits firearm possession ONLY if you are "stationed" or "posted" in the vicinity.
This means 171(b) would not apply when the building is being used as a polling place. (Though I wouldn't want to walk into City Hall to be the test case.) Keep in mind this exemption only applies to 171(b), so a polling place in the high school gym would still be a no-firearm zone.
18544. (a) Any person in possession of a firearm or any uniformed
peace officer, private guard, or security personnel or any person who
is wearing a uniform of a peace officer, guard, or security
personnel, who is stationed in the immediate vicinity of, or posted
at, a polling place without written authorization of the appropriate
city or county elections official is punishable by a fine not
exceeding ten thousand dollars ($10,000), by imprisonment in the
state prison for 16 months or two or three years or in a county jail
not exceeding one year, or by both the fine and imprisonment.
(b) This section shall not apply to any of the following:
(1) An unarmed uniformed guard or security personnel who is at the
polling place to cast his or her vote.
(2) A peace officer who is conducting official business in the
course of his or her public employment or who is at the polling place
to cast his or her vote.
(3) A private guard or security personnel hired or arranged for by
a city or county elections official.
(4) A private guard or security personnel hired or arranged for by
the owner or manager of the facility or property in which the
polling place is located if the guard or security personnel is not
hired or arranged solely for the day on which an election is held.