Medical cannabis might be legal in several states, but it remains illegal on a federal level. Police officers generally need a warrant to search you or your property, but during a traffic stop, they only need probable cause for a legal search. In theory, probable cause means the officer must have some facts or evidence that suggests you're involved in criminal activity, but it is a loosely defined concept.