Section 106(1) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(1)When inspected by a Flag Officer, or Captain, or by the officer in command of the ship of whatever rank, ships companies are inspected covered, and the right-hand Chief Petty Officer or Petty Officer only shall salute on the arrival of the inspecting officer. This sailor should be the senior of those fallen in.