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. .presubmitignore
  2. README.md
  3. component.cc
  4. component.h
  5. component_unittest.cc
  6. dbus_adaptors/
  7. dbus_permissions/
  8. dbus_service/
  9. helper_process.cc
  10. helper_process.h
  11. imageloader-client.gyp
  12. imageloader-shutdown.conf
  13. imageloader.cc
  14. imageloader.conf
  15. imageloader.gyp
  16. imageloader.h
  17. imageloader_impl.cc
  18. imageloader_impl.h
  19. imageloader_main.cc
  20. imageloader_unittest.cc
  21. imageloader_wrapper
  22. ipc.proto
  23. libimageloader-client-test.pc.in
  24. libimageloader-client.pc.in
  25. mock_helper_process.h
  26. mock_verity_mounter.h
  27. mount_helper.cc
  28. mount_helper.h
  29. public_keys/
  30. run_tests.cc
  31. seccomp/
  32. test_utilities.cc
  33. test_utilities.h
  34. testdata/
  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.