Inmates serving time in California state prison or federal prison who believe that their arrest, trial or sentence violated their constitutional rights in some way can file a petition at the federal level requesting habeas corpus relief and challenging their incarceration.