An inmate working on public roads under §§ 9-508 through 9-514 of this subtitle is entitled to the same deductions or allowances for good behavior, observance of discipline and rules, and diligent and faithful labor, and is subject to the same forfeitures or punishments for bad behavior and other violations that otherwise apply to inmates under the laws of the State.