Customary International Humanitarian Law has something to say about this[0]. The US military has its interpretation of rule 42[1].
[0] https://www.icrc.org/customary-ihl/eng/docs/v2_cha_chapter13...
[1] https://www.icrc.org/customary-ihl/eng/docs/v2_cou_us_rule42