. . . "per, jailer, guard or other officer or a permanent employee of a prison, acting in the course of his duties; or(c) a person working in a prison with the permission of the prison authorities and acting in the co" . . . .