in high school or any schools before the teachers/principals are there to look out for your safety and you don't have the same rights as you do when you are out of school. they can search you on reasonable suspicion. my school did sorta the same thing. they'd have several police come into the school with drug dogs and they'd walk the hallways having them sniff the lockers and then go room to room and have them sniff the rooms.

searching your car i think in my school district they had to get a warrant unless it was really obvious you had something you shouldn't (gun sitting in pass. seat, bag of weed/any drug in plain view, etc.)

and let me say it again, while you're in school the teachers/principals are there to look out for your safety and you don't have all the rights you do while you are outside of school.

college does rule