(a) Subject to (b) of this section, a locker or other container provided in a school by the school or the school district may be searched and examined with the permission of the chief administrative officer of the school or the school district or the designee of the chief administrative officer to determine compliance with school regulations, school district regulations, and local, state, and federal laws. A search or examination under this section may not be more intrusive than reasonably necessary to meet the objectives of the search.
(b) Notices in letters at least two inches high stating the right and the intention of school and school district officers to permit searches and examinations under (a) of this section shall be posted in prominent locations throughout a school.
(c) Nothing in this section limits the ability of a peace officer, chief administrative officer, or other appropriate person, acting in compliance with local, state, or federal laws, to search a locker or other container provided in a public or private school by the school district.