Term describing a group's relatively greater ability to resist capricious law enforcement?

One attribute or method to grant immunity to a population is to grandfather them in. Merriam-Webster lists the verb form with this tame definition:

: to permit to continue under a grandfather clause

However, the dictionary delivers a concise definition of "grandfather clause":

: a clause creating an exemption based on circumstances previously existing

especially : a provision in several southern state constitutions designed to enfranchise poor whites and disenfranchise blacks by waiving high voting requirements for descendants of men voting before 1867

In this historical case, the attribute is literally having a grandfather who was able to vote, a condition that poor white people could meet fairly easily but one that black people and immigrants could not. The phrase has generalized somewhat to refer to any policy that exempts people meeting a certain attribute before the policy took effect.