We should try to minimize the number of laws that are selectively applied though, because the more there are, the more powerful random officials get.
Imagine how badly that would be abused if it were a law.
The difference with something like the "condoning" rules is that they essentially take away the right to remain silent from the 5th amendment. Of course, they can get away with it because they are just rules at a school.