commit | 820203a84694af0f4387777869f76bbd3783981d | [log] [tgz] |
---|---|---|
author | Greg Kerr <kerrnel@chromium.org> | Mon Aug 29 23:39:45 2016 |
committer | chrome-bot <chrome-bot@chromium.org> | Mon Oct 10 23:36:59 2016 |
tree | 80fe7ad4ab53e54c194ff148701417c9b7903cdf | |
parent | 8e40e4cd02d5c9c3a07e9687915262aa7204d6a3 [diff] |
Call dmsetup to attach the dm-verity information to the mount. This completes loading of components. They will now be verified by the dm-verity information attached to the disk image. BUG=chromium:630421 TEST=FEATURES="test" emerge-${BOARD} imageloader Change-Id: I7dfe494112591ef3f82240739394a0ac163e5e90 Reviewed-on: https://chromium-review.googlesource.com/385699 Commit-Ready: Greg Kerr <kerrnel@chromium.org> Tested-by: Greg Kerr <kerrnel@chromium.org> Reviewed-by: Greg Kerr <kerrnel@chromium.org>
This aims to provide a generic utility to load (mount) and unload (unmount) verified disk images through DBus IPC.
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.