California Penal Code Section 3067

(a) Any inmate who is eligible for release on parole pursuant to this chapter shall agree in writing to be subject to search or seizure by a parole officer or other peace officer at any time of the day or night, with or without a search warrant and with or without cause. (b) Any inmate who does not comply with the provision of subdivision (a) shall lose worktime credit earned pursuant to Article 2.5 (commencing with Section 2930) of Chapter 7 on a day-for-day basis and shall not be released until he or she either complies with the provision of subdivision (a) or has no remaining worktime credit, whichever occurs earlier. (c) This section shall only apply to an inmate who is eligible for release on parole for an offense committed on or after January 1, 1997. (d) It is not the intent of the Legislature to authorize law enforcement officers to conduct searches for the sole purpose of harassment. (e) This section does not affect the power of the Director of Corrections to prescribe and amend rules and regulations pursuant to Section 5058.