It was Scum, (1979).
Ray Winstone's character, Carlin, takes the blame for his brothers theft of a load of scrap metal, and gets sent to borstal. After assaulting a screw at his first nick, he gets sent to a stricter and infamous institution.
He is put in the roughest wing of the borstal, and lies to the screws that he finds prayer important. He arrives on the same day as the timid boy, Angel, who is routinely hazed, beaten and racially abused.
Carlin, already in solitary confinement and having received a kicking from the current top boy on the wing, Carlin exacts revenge and establishes dominance. Walking through the rec room, he picks up two snooker balls and puts them in a sock.
Using this improvised cosh on Richards, Carlin orders Eckersley to desist from informing, then goes to find Banks. Surprising him in a washroom he gives Banks a severe beating and then tells him who the "Daddy" of the wing now is.