diff options
| author | Richard Jones <rjones@redhat.com> | 2010-07-21 12:52:51 +0100 |
|---|---|---|
| committer | Richard Jones <rjones@redhat.com> | 2010-07-21 19:49:22 +0100 |
| commit | 581a7965faa5bf242ab3f8b7c259ab17c2e967f4 (patch) | |
| tree | 664c440b9f48e1d4d1a913e23a2a96a9da8a0d48 /src/guestfs.pod | |
| parent | 2e7da2a2f3bbc6d6db148d7dc2ce238bf56f34db (diff) | |
| download | libguestfs-581a7965faa5bf242ab3f8b7c259ab17c2e967f4.tar.gz libguestfs-581a7965faa5bf242ab3f8b7c259ab17c2e967f4.tar.xz libguestfs-581a7965faa5bf242ab3f8b7c259ab17c2e967f4.zip | |
generator: Add 'Key' parameter type.
Add a 'Key' parameter type, used for passing sensitive key material
into libguestfs.
Eventually the plan is to mlock() key material into memory. However
this is very difficult to achieve because the encoded XDR strings
end up in many places. Therefore users should note that key material
passed to libguestfs might end up in swap.
The only difference between 'Key' and 'String' currently is that
guestfish requests the key from /dev/tty with echoing turned off.
Diffstat (limited to 'src/guestfs.pod')
| -rw-r--r-- | src/guestfs.pod | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/guestfs.pod b/src/guestfs.pod index e8760168..8e3d07c5 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -675,6 +675,21 @@ L</UPLOADING> and L</DOWNLOADING> document how to do this. You might also consider mounting the disk image using our FUSE filesystem support (L<guestmount(1)>). +=head2 KEYS AND PASSPHRASES + +Certain libguestfs calls take a parameter that contains sensitive key +material, passed in as a C string. + +In the future we would hope to change the libguestfs implementation so +that keys are L<mlock(2)>-ed into physical RAM, and thus can never end +up in swap. However this is I<not> done at the moment, because of the +complexity of such an implementation. + +Therefore you should be aware that any key parameter you pass to +libguestfs might end up being written out to the swap partition. If +this is a concern, scrub the swap partition or don't use libguestfs on +encrypted devices. + =head1 CONNECTION MANAGEMENT =head2 guestfs_h * |
