Not only does it violate the 2nd, it violates the 4th as well.
Unreasonable searches and seizures are Unconstitutional.
The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized.