10 USC § 379. Assignment of Coast Guard personnel to naval vessels for law enforcement purposes
(a) The Secretary of Defense and the Secretary of Homeland Security shall provide that there be assigned on board every appropriate surface naval vessel at sea in a drug-interdiction area members of the Coast Guard who are trained in law enforcement and have powers of the Coast Guard under title 14, including the power to make arrests and to carry out searches and seizures.
(b) Members of the Coast Guard assigned to duty on board naval vessels under this section shall perform such law enforcement functions (including drug-interdiction functions)—
(1) as may be agreed upon by the Secretary of Defense and the Secretary of Homeland Security; and
(2) as are otherwise within the jurisdiction of the Coast Guard.
(c) No fewer than 500 active duty personnel of the Coast Guard shall be assigned each fiscal year to duty under this section. However, if at any time the Secretary of Homeland Security, after consultation with the Secretary of Defense, determines that there are insufficient naval vessels available for purposes of this section, such personnel may be assigned other duty involving enforcement of laws listed in section 374(b)(4)(A) of this title.
(d) In this section, the term “drug-interdiction area” means an area outside the land area of the United States (as defined in section 374(b)(4)(B) of this title) in which the Secretary of Defense (in consultation with the Attorney General) determines that activities involving smuggling of drugs into the United States are ongoing.