Any inmate against whom the disciplinary sanction of punitive confinement has been given for violating any of the rules or policies of the Department of Corrections, unless otherwise determined by the secretary of corrections, shall be housed in a segregation section of the state correctional facility for such period as may be necessary for the best interests of discipline, justice, rehabilitation, and the protection of the inmate and others. The disciplinary board, established by rules promulgated by the Department of Corrections, may take away time granted for good conduct pursuant to § 24-5-1 for violating any of the rules or policies of the Department of Corrections, following a hearing and subject to the approval of the secretary of corrections.
SDCL 24-2-12