The law provides that:
Article 7 of the Prison Law: A prisoner's personality shall not be insulted, and his personal safety, lawful property, defense, appeal, accusation and other rights that have not been deprived or restricted according to law shall not be violated.
Section 2 Handling of Complaints, Accusations and Reports of Criminals
Article 21 If a prisoner refuses to accept the effective judgment, he may lodge a complaint.
The people's procuratorate or the people's court shall promptly handle the complaints of criminals.
Article 22 A prison's complaint or accusation against a prisoner shall be promptly handled or transmitted to the public security organ or the people's procuratorate, and the public security organ or the people's procuratorate shall notify the prison of the handling result.
Twenty-third prisoners' complaints, accusations and accusation materials shall be delivered in time by the prison, and shall not be withheld.
Article 24 In the process of executing the penalty, if a prison thinks that the judgment may be wrong according to the prisoner's complaint, it shall submit it to the people's procuratorate or the people's court for handling, and the people's procuratorate or the people's court shall notify the prison of the handling result within six months from the date of receiving the prison's handling opinion.