The formation and operation of prisons, as well as inmates' rights, are governed by federal and state regulations. Although prisoners may not have full constitutional rights, the Eighth Amendment's restriction on cruel and unusual punishment protects them.