X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fguestfs.pod;h=7cb05a6c3ac34467f8c7ffa62bc82d4820e9162c;hb=ad2abf89c364d5ec73fb12af63b053637d99d757;hp=83709827d3d832e9a531e61b7be805cede018ac5;hpb=163be3d72a3f3dc902bcd0856d8aec448bc7907f;p=libguestfs.git diff --git a/src/guestfs.pod b/src/guestfs.pod index 8370982..7cb05a6 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -52,6 +52,9 @@ need enough permissions to access the disk images. Libguestfs is a large API because it can do many things. For a gentle introduction, please read the L section next. +There are also some example programs in the L +manual page. + =head1 API OVERVIEW This section provides a gentler overview of the libguestfs API. We @@ -654,7 +657,7 @@ with libguestfs. =item B -For documentation see the file C. +For documentation see L. =item B @@ -669,16 +672,11 @@ The PHP binding only works correctly on 64 bit machines. =item B -For documentation do: - - $ python - >>> import guestfs - >>> help (guestfs) +For documentation see L. =item B -Use the Guestfs module. There is no Ruby-specific documentation, but -you can find examples written in Ruby in the libguestfs source. +For documentation see L. =item B @@ -1095,6 +1093,14 @@ data. Callers should be careful to escape these before printing them to a structured file (for example, use HTML escaping if creating a web page). +Guest configuration may be altered in unusual ways by the +administrator of the virtual machine, and may not reflect reality +(particularly for untrusted or actively malicious guests). For +example we parse the hostname from configuration files like +C that we find in the guest, but the guest +administrator can easily manipulate these files to provide the wrong +hostname. + The inspection API parses guest configuration using two external libraries: Augeas (Linux configuration) and hivex (Windows Registry). Both are designed to be robust in the face of malicious data, although @@ -1849,6 +1855,14 @@ The header contains the procedure number (C) which is how the receiver knows what type of args structure to expect, or none at all. +For functions that take optional arguments, the optional arguments are +encoded in the C_args> structure in the same way as +ordinary arguments. A bitmask in the header indicates which optional +arguments are meaningful. The bitmask is also checked to see if it +contains bits set which the daemon does not know about (eg. if more +optional arguments were added in a later version of the library), and +this causes the call to be rejected. + The reply message for ordinary functions is: total length (header + ret, @@ -2075,11 +2089,16 @@ enough. =head1 SEE ALSO +L, +L, +L, +L, L, L, L, L, L, +L, L, L, L,