imageloader: split out proxy generation

Nothing in imageloader proper relies on the proxy generation
since it's implementing the adaptor. If we split out the proxy
generation then we can use it more easily from other programs.

BUG=chromium:778003
TEST=emerge, inspect buildroot

Change-Id: Ib250451d375ab8604bc6617fd8290ca96d97fce9
Reviewed-on: https://chromium-review.googlesource.com/736322
Commit-Ready: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Eric Caruso <ejcaruso@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
4 files changed
tree: d03030c51231d5837d6dddc405e3d1b0692efe99
  1. dbus_adaptors/
  2. dbus_permissions/
  3. dbus_service/
  4. public_keys/
  5. seccomp/
  6. testdata/
  7. .presubmitignore
  8. component.cc
  9. component.h
  10. component_unittest.cc
  11. helper_process.cc
  12. helper_process.h
  13. imageloader-client.gyp
  14. imageloader-shutdown.conf
  15. imageloader.cc
  16. imageloader.conf
  17. imageloader.gyp
  18. imageloader.h
  19. imageloader_impl.cc
  20. imageloader_impl.h
  21. imageloader_main.cc
  22. imageloader_unittest.cc
  23. imageloader_wrapper
  24. ipc.proto
  25. libimageloader-client-test.pc.in
  26. libimageloader-client.pc.in
  27. mock_helper_process.h
  28. mock_verity_mounter.h
  29. mount_helper.cc
  30. mount_helper.h
  31. README.md
  32. run_tests.cc
  33. test_utilities.cc
  34. test_utilities.h
  35. verity_mounter.cc
  36. verity_mounter.h
  37. verity_mounter_impl.cc
  38. verity_mounter_impl.h
  39. verity_mounter_unittest.cc
README.md

src/platform/imageloader

This aims to provide a generic utility to verify and load (mount) signed disk images through DBUS IPC.

Binaries

  • imageloader

imageloader handles the mounting of disk images. imageloader should be executed via the imageloader_wrapper script, which ensures that imageloader's storage exists and is owned by imageloaderd user. When imageloader is not running, DBus will automatically invoke it. After 20 seconds of inactivity, the service exits.