A special commission of inquiry is looking at what Corrective Services NSW staff, or prison management, knew about the offending of senior prison guard, Wayne Gregory Astill.