Legal basis: Constitution of People's Republic of China (PRC).
Article 33 Anyone with China nationality is a citizen of China. All China people and citizens are equal before the law. The state respects and guarantees human rights. Any citizen enjoys the rights stipulated by the Constitution and laws, and at the same time must fulfill the obligations stipulated by the Constitution and laws.
Article 37 The personal freedom of People's Republic of China (PRC) citizens shall be inviolable. No citizen shall be arrested unless approved or decided by the people's procuratorate or decided by the people's court, and shall be executed by the public security organ.
It is forbidden to illegally detain or deprive or restrict citizens' personal freedom by other means, and it is forbidden to illegally search citizens' bodies.