firewalld: Add D-Bus ObjectManager to track the Firewalld service lifetime

Added ObjectManager to firewalld to allow permission_broker to track the
lifetime of the top D-Bus service object and restart permission_broker
if firewall crashes/restarts.

This will also allow to wait for Firewalld to come up and finish initialization
before permission_broker D-Bus appears on the bus, which would eliminate
weird race condiftions when web server asks permission_broker to open
TCP ports too early (before firewalld is up and running).

BUG=brillo:1240
TEST=`FEATURES=test emerge-link firewalld permission_broker apmanager webserver`

Change-Id: I1f575b74c6a1e8e75cd4d33b6b70dda5b95f5339
Reviewed-on: https://chromium-review.googlesource.com/284975
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
Reviewed-by: Vitaly Buka <vitalybuka@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
8 files changed