Penal Code §9.21 covers public duty with respect to the use of force.
- Under this section, the use of force is justified if you reasonably believe that your conduct is required or authorized:
- By law or...
- To assist a public servant in the performance of his official duty.
- This section does not require you to protect against, or prevent, a crime.