The release of Israeli hostages, and Palestinian prisoners in return, was part of the Gaza ceasefire deal agreed last month.
In the early weeks of the war, prison authorities told top guards there would be no restrictions against violence.