There is another piece of legislation, the Marine Transportation Security Act, that deals more specifically with security considerations.
Of course, when it comes to clearance of cargo, I guess that falls even somewhat further to the revenue and customs authority.