Syria had a lot of ability in the years it was in Lebanon to work with the Lebanese Army, work with various Lebanese intelligence services, protect Hezbollah from the Taif Agreement, which called for the disarming of all militias.
NPR: The Syria-Lebanon Connection