The police only have the right to search your car or house if you or someone who appears to have the capacity to give permission actually gives them permission to do so, or if they have a warrant signed by a magistrate that allows them to search your car or home. Without either permission or a warrant, any search could be in violation of the law and after a hearing, the judge may issue an order excluding any evidence they obtained from being used against you in a trial.