The Code of Criminal Procedure, 1973 (CrPc)
132. Protection against prosecution for acts done under preceding sections.
(1) No prosecution against any person for any act purporting to be done under section 129, section 130 or section 131 shall be instituted in any Criminal Court except-
(a) with the sanction of the Central Government where such person is an officer or member of the armed forces;
(b) with the sanction of the State Government in an other case.
(2) (a) no executive Magistrate or police officer acting under any of the said sections in good faith;
(b) no person doing any act in good faith in compliance with a requisition under section 129 or section 130;
(c) no officer of the armed forces acting under section 131 in good faith;
(d) no member of the armed forces doing any act in obedience to any order which he was bound to obey,
Shall be deemed to have thereby, committed an offence.
(3) In this section and in the preceding sections of this Chapter, –
(a) the expression “armed forces” means the military, naval and air forces, operating as land forces and includes any other Armed Forces of the Union so operating;
(b) “officer,” in relation to the armed forces, means a person commissioned, Gazetted or in pay as an officer of the armed forces and includes a junior commissioned officer, a warrant officer, a petty officer of’ the armed forces a non-commissioned officer and a non-Gazetted officer.
(c) “member” in relation to the armed forces, means a person in the armed forces other than an officer.