When any prisoner has been sentenced to imprisonment in a county jail or is serving time in the county jail pursuant to an agreement with the Department of Correction, the sheriff is authorized to permit the prisoner to participate in work programs. T.C.A. § 41-2-146(a).