There is no prohibition, it's an agreement and a pledge. It applies to Israel and Lebanon equally, and it is not limited to legal remedies.
It also applies to any liability by Lebanon for war crimes perpetrated by Hezbollah operating from Lebanon's sovereign territories.