tools: Refactor the seccomp policy generation
am: 342328d677

Change-Id: If106b507633f815a86a150726f1456c95b4a7ad4