law: 21. 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.