In accordance with section 4017 of the Penal Code of the State of California and section 25359 of the Government Code of the State of California, all persons confined in the County Jail and the branch Jail under a final judgment of imprisonment rendered in a criminal action or proceeding and all persons confined in the County Jail and branch Jail as a condition of probation after suspension of imposition of sentence or suspension of execution of sentence shall be required to perform labor on the public works or ways of the County, as defined in said statutes. Such labor shall be performed pursuant to resolutions adopted by the Board of Supervisors specifying the rules and regulations pertaining to such work.