The sheriff of any county which maintains a jail in another county has the same control and supervision of the property, personnel, and inmates that he would have if the jail were located within the boundaries of the county which maintains it.
Ca. Gov. Code § 26610