(c) This section does not apply to
conduct described by Subsection (b) that is committed by:
(1) the federal government, the state, or a governmental entity;
(2) a person under contract with or otherwise acting under the direction or on behalf of the federal government, the state, or a governmental entity;
(3) a law enforcement agency;
(4) a person under contract with or otherwise acting under the direction or on behalf of a law enforcement agency;
(5)
an operator of an unmanned aircraft that is being used for a commercial purpose, if the operation is conducted in compliance with:
(A) each applicable Federal Aviation Administration rule, restriction, or exemption; and
(B) all required Federal Aviation Administration authorizations;
(6)
an owner or operator of the critical infrastructure facility;
(7) a person under contract with or otherwise acting under the direction or on behalf of an owner or operator of the critical infrastructure facility;
(8) a person who has the prior written consent of the owner or operator of the critical infrastructure facility; or
(9) the owner or occupant of the property on which the critical infrastructure facility is located or a person who has the prior written consent of the owner or occupant of that property.