In the case at hand, it's rare, but it's not a first.
Whether you're an inmate or a person who frequents massage parlours and prostitutes or any person here in the room, this constitutes a criminal act. It's very simple. This issue doesn't concern an inmate any more than it concerns the average person. The act is illegal. This is set out in section 286 of the Criminal Code.