Officer, am I free to leave?

I should've known this, but I didn't realize that cops don't have the right to search your vehicle without your permission (unless they can see something illegal). Many people waive their 4th Amendment rights when they allow police to search their cars after asking.

Flex Your Rights has guidelines for how to deal with a police officer after being stopped.