The Bill of Rights says that the government is not allowed to conduct unreasonable search and seizure. This applies to all people, not just to US citizens. Unfortunately, when you are a noncitizen at at a port of entry, the Bill of Rights is effectively a dead letter.