Section 21 in The Prisons Act, 1894
Title: Duties of gate-keeper.
The officer acting as gate-keeper, or any other officer of the prison, may examine anything carried in or out of the prison, and may stop and search or cause to be searched any person suspected of bringing any prohibited article into or out of the prison, or of carrying out any property belonging to the prison, and, if any such article or property be found, shall give immediate notice thereof to the Jailer.
Title: Subordinate officers not to be absent without leave.
Officers subordinate to the Jailer shall not be absent from the prison without leave from the Superintendent or from the Jailer.
Title: Convict officers.
Prisoners who have been appointed as officers of prisons shall be deemed to be public servants within the meaning of the Indian Penal Code (45 of 1860)
Title: Prisoners to be examined on admission.
(1) Whenever a prisoner is admitted into prison, he shall be searched, and all weapons and prohibited articles shall be taken from him.
(2) Every criminal prisoner shall also, as soon as possible after admission, be examined under the general or special orders of the Medical Officer, who shall enter or cause to be entered in a book, to be kept by the Jailer, a record of the state of the prisoner's health, and of any wounds or marks on his person, the class of labour he is fit for if sentenced to rigorous imprisonment, and any observations which the Medical Officer thinks fit to add.
(3) In the case of female prisoners the search and examination shall be carried out by the matron under the general or special orders of the Medical Officer.
Title: Effects of prisoners.
All money or other articles in respect whereof no order of a competent Court has been made, and which may with proper authority be brought into the prison by any criminal prisoner or sent to the prison for his use, shall be placed in the custody of the Jailer.