Federal and state law does. For example, felons almost totally may not own or possess a firearm. That goes for life. Sex offenders are required to register for life. Many white collar crimes like forgery, fraud, bank fraud, that sort of thing get you banned from certain employment for life. Voting is different by state. Some states take this away for life (which I think is very unfair), others only while serving your sentence including during community custody / parole / supervised release. Some restore this right on release from prison / custody.