Are Subway Searches legal?

Do you think subway searches are legal or do they go aganst the Bill of Rights?