An officer or employee of a correctional facility is justified in using force against a person in custody when and to the degree the officer or employee reasonably believes the force is necessary to maintain the security of the correctional facility, the safety or security of other persons in custody or employed by the correctional facility, or his own safety or security.
Tex. Pen. Code § 9.53