Fix compiler warnings and build errors.

Fix new compiler warnings and build errors in ImageLoader.

BUG=chromium:630421
TEST=FEATURES="test" emerge-${BOARD} imageloader

Change-Id: I55ef7471d3116655b58849c1cefbd11337d6f367
Reviewed-on: https://chromium-review.googlesource.com/400838
Commit-Ready: Greg Kerr <kerrnel@chromium.org>
Tested-by: Greg Kerr <kerrnel@chromium.org>
Reviewed-by: Greg Kerr <kerrnel@chromium.org>
2 files changed
tree: 93cfe8d63e34c257a7d7fc4911e5878888928ce7
  1. public_keys/
  2. test/
  3. .presubmitignore
  4. imageloadclient-glue.xml
  5. imageloadclient.cc
  6. imageloadclient.h
  7. imageloader-glue.xml
  8. imageloader.conf
  9. imageloader.gyp
  10. imageloader.h
  11. imageloader_common.cc
  12. imageloader_common.h
  13. imageloader_impl.cc
  14. imageloader_impl.h
  15. imageloader_main.cc
  16. imageloader_unittest.cc
  17. mock_verity_mounter.h
  18. org.chromium.ImageLoader.conf
  19. org.chromium.ImageLoader.service
  20. README.md
  21. run_tests.cc
  22. verity_mounter.cc
  23. verity_mounter.h
README.md

src/platform/imageloader

This aims to provide a generic utility to load (mount) and unload (unmount) verified disk images through DBus IPC.

Binaries

  • imageloader
  • imageloadclient

imageloader can be run as root and can handle mounting and unmounting of disk images. imageloadclient is a simple client (intended to be run as chronos) that can talk to imageloader and ask it to mount and unmount stuff. When imageloader is not running, DBus can invoke it via the one time run option (imageloader -o) and get the task done.