They can search you if they get a warrant for the school. They can't search you just because they feel like it. They have to have a legal reason. Like someone on campus selling drugs or a terrorist threat. I don't know if it's different in every state, but I know in California it's illegal for them to search you for no reason.