Passing on a double yellow is legal, as yellow road markings denote the recommended course of action only (Everywhere I’ve ever lived at least, it may be illegal somewhere). As an example, it’s not illegal to go faster than the yellow speed signs on corners.