(4)For the purposes of sub- sections (2) and (3), a provost-marshal shall be deemed to include a provost- marshal appointed under any law for the time being in force relating to the Government of the Navy or Air Force, and any person legally exercising authority under him or on his behalf.