(3)Discipline shall be strictly enforced in the case of prisoners and no subordinate officer shall hold any communication with a prisoner further than is requisite to enforce obedience to the prison rules and for the performance of his duty, and shall not be allowed to talk of any official matter whatever in the hearing of a prisoner.