Hey I'm a college student and get profiled by police a lot because I'm young and dress a certain way, so I'm just trying to get as much information on my rights as possible.
Say a police officer stops you and is trying to search your car, (because this probably the most common reason a police officer would try to search your car) let's say he suspect you of carrying narcotics. Obviously a citizen has the right to refuse any search or seizure without a warrant, but obviously there is a large amount of cops in the USA that violate these rights or think they have the right to do things that they don't, so let's say you refuse the search and he says "well, I smell an odor of marijuana coming from your car, giving me probable cause to search your car". If you ask the officer what state or federal statute allows him to search a car based on his opinion of the smell, does he legally have to provide the statute before conducting the search? Does this account for any meeting with an officer of the law, where before getting information out of me, searching my car or any personal and private property of mine or arresting me he would have to provide a statute? If he goes ahead an illegally or legally conducts the search, how do I let him know that though he is now searching my car, in order to search my locked trunk he needs a warrant? Do I just tell him that flat out?
If you have the answers to my questions, I'd appreciate a link confirming it as anyone can say anything on the internet. Not necessary though, all comments and answers are appreciated, thank you so much!

