My question involves criminal law for the state of: Georgia

A passenger and I are pulled over im out of the car and the cop claims i have an open container in my car.

a. Does that give them the right to search the car?

b. What about if they claim to smell something?

c.Pot in the glovebox, who gets charged?