Penal Code section 4021
(a)
Whenever any female prisoner or prisoners are confined in any local detention facility in the state there shall be an appropriately trained female custodial person assigned, available, and accessible for the supervision of the female prisoners.(b)
It shall be unlawful for any officer, station officer, jailer, or custodial personnel to search the person of any prisoner of the opposite sex, or to enter into the room or cell occupied by any prisoner of the opposite sex, except in the company of an employee of the same sex as the prisoner. Except as provided herein, the provisions of this subdivision shall not be applied to discriminate against any employee by prohibiting appointment or work assignment on the basis of the sex of the employee.
Source:
Section 4021, https://leginfo.legislature.ca.gov/faces/codes_displaySection.xhtml?lawCode=PEN§ionNum=4021.
(accessed Apr. 24, 2025).