summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.15.15.1.15.15Richard W.M. Jones2012-01-0820-403/+391
|
* debian: Add build-dep erlang-dev.Richard W.M. Jones2012-01-061-0/+2
|
* Update to latest gnulib.Richard W.M. Jones2012-01-061-0/+0
|
* Tempora mutantur, nos et mutamur in illis.Matthew Booth2012-01-041-1/+1
|
* build: Fix automake warningsMatthew Booth2012-01-043-8/+12
|
* Sort .gitignore (using sort -d -- dictionary order).Richard W.M. Jones2012-01-041-55/+54
|
* gitignore: ignore the git related filesWanlong Gao2012-01-041-0/+7
| | | | | | | *.eml for email picked patches other for orginal git patch related files. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* fish: fix the Ctrl-\ causes guestfish to abort bug(RHBZ#596761)Wanlong Gao2012-01-041-0/+1
| | | | | | Handle SIGQUIT by guestfish, so that it can't be terminated. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* AUTHORS: add the email address for each authorsWanlong Gao2012-01-032-25/+25
| | | | | | | Add the email address for authors. It would be better. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* fish: mount can be used instead of mount-options with libguestfs >= 1.14Richard W.M. Jones2011-12-231-1/+1
|
* fish: Fix --format parameter in man page.Richard W.M. Jones2011-12-231-1/+1
|
* Version 1.15.14.1.15.14Richard W.M. Jones2011-12-2318-337/+343
|
* lib: Try harder to remove temporary directory along error paths (RHBZ#769680).Richard W.M. Jones2011-12-231-1/+11
|
* lib: Add guestfs___remove_tmpdir helper function.Richard W.M. Jones2011-12-235-46/+35
| | | | | | | This function does 'rm -rf <dir>' for temporary directories, safely working if '<dir>' contains shell meta-characters. Replace existing code for removing directories with this.
* gitignore: ignore the guestfs.* directoryWanlong Gao2011-12-231-0/+1
| | | | | | Let git ignore the guestfs.* directorys. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* extra-tests: add test-guests to prevent test errorWanlong Gao2011-12-231-0/+4
| | | | | | | | | | | | extra-tests is depending on tests-guests. We need guests/*.img when doing extra-tests. /work/git/libguestfs/run valgrind --log-file=/work/git/libguestfs/tests/extra/valgrind.log --leak-check=full --error-exitcode=119 --suppressions=/work/git/libguestfs/tests/extra/suppressions ../../cat/virt-cat -a ../guests/fedora.img /etc/fstab >/dev/null ../guests/fedora.img: No such file or directory make[1]: *** [test-tools-internal] Error 1 make[1]: Leaving directory `/work/git/libguestfs/tests/extra' Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* fish: Fix test-guestfish-events.sh so it works when LIBGUESTFS_DEBUG=1 is set.Richard W.M. Jones2011-12-231-7/+1
| | | | | Various messages were added and changed when this variable was set while tests were running.
* mkfs: optimization and code cleanupWanlong Gao2011-12-231-15/+14
| | | | | | | | | | | v1->v2: fix a typo pointed by Matt Optimizations by reducing the STREQ operations and do some code cleanup. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> RWMJ: Whitespace changes.
* tests/lvm: Contains a Perl test so we must set PERL5LIB.Richard W.M. Jones2011-12-221-1/+2
| | | | This fixes commit 498758faee6be7e989869bf7feba5e1026a1bb65.
* tests/protocol: Contains a Perl test so we must set PERL5LIB.Richard W.M. Jones2011-12-221-1/+2
| | | | This fixes commit 498758faee6be7e989869bf7feba5e1026a1bb65.
* Version 1.15.13.1.15.13Richard W.M. Jones2011-12-2217-124/+124
|
* Security: Mitigate possible privilege escalation via SG_IO ioctl ↵Richard W.M. Jones2011-12-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (CVE-2011-4127, RHBZ#757071) CVE-2011-4127 is a serious qemu & kernel privilege escalation bug found by Paolo Bonzini. http://seclists.org/oss-sec/2011/q4/536 An untrusted guest kernel is able to issue special SG_IO ioctls on virtio devices which qemu passes through to the host kernel without filtering or sanitizing. These ioctls allow raw sectors from the underlying host device to be read and written. Significantly, neither qemu nor the host kernel checks that the range of sectors is within the partition / LV assigned to the guest. For example, if the guest is assigned host partition /dev/sda3, it would be able to read or write any part of /dev/sda including other partitions and the boot sector. Exploits through LVs passed to the guest are also possible, with some limitations. File-backed virtual block devices are not vulnerable. Non-virtio block devices are not vulnerable. This patch mitigates the problem by disabling the SG_IO ioctl passthrough in qemu. Thus if libguestfs is examining an untrusted guest and the libguestfs appliance/daemon is compromised (eg. by executing guest commands, or through some other compromise), then the compromised appliance will not be able to issue the above SG_IO ioctls and exploit the host. Note that this is just mitigation for libguestfs. Users will still want to fully update their host kernel, qemu/KVM and libvirt, in order to prevent other (non-libguestfs) routes to compromise. The following versions of libguestfs (will/have) this patch applied. libguestfs >= 1.15.13 libguestfs >= 1.14.8 libguestfs >= 1.12.11 libguestfs >= 1.10.12 libguestfs >= 1.8.16 Earlier versions may be vulnerable unless a downstream packager has applied this patch. Cc: Hilko Bengen <bengen@hilluzination.de>
* Fixed checks for libpython featuresHilko Bengen2011-12-221-11/+12
| | | | | The python3.1 package shipped with Debian/squeeze does not have the 'mu' suffix that was assumed before.
* Version 1.15.12.1.15.12Richard W.M. Jones2011-12-2220-10600/+11415
|
* tests: Add a simple liveness tests for qemu.Richard W.M. Jones2011-12-222-0/+53
|
* tests: Finalize the order we run the tests.Richard W.M. Jones2011-12-222-4/+15
|
* tests: Put test-tool and comment into own section.Richard W.M. Jones2011-12-221-2/+5
|
* tests: Split images -> tests/data + tests/guestsRichard W.M. Jones2011-12-2262-175/+191
|
* tests: Rename extratests -> tests/extra.Richard W.M. Jones2011-12-226-44/+39
|
* tests: Split regressions -> various subdirectories of tests/Richard W.M. Jones2011-12-2254-138/+203
|
* tests: Rename capitests -> tests/c-api.Richard W.M. Jones2011-12-2223-54/+46
|
* tests: Rename caution -> tests/qemu.Richard W.M. Jones2011-12-225-7/+2
|
* tests: Document new tests/ subdirectory.Richard W.M. Jones2011-12-221-0/+4
|
* docs: Arrange directory names in alphabetical order.Richard W.M. Jones2011-12-221-4/+4
|
* extra-tests: Add an extra suppression for OCaml 3.11.2 in RHEL 6.Richard W.M. Jones2011-12-201-0/+7
|
* fish: Allow events to be processed in guestfish.Richard W.M. Jones2011-12-1613-4/+530
| | | | | | | | Add 'event', 'list-events' and 'delete-event' commands so that event handlers can be registered, listed and deleted in guestfish. The event handler is a shell script snippet or host command. Cc: Pádraig Brady <P@draigBrady.com>
* python: Missing () in guestfs-python(1) examples.Richard W.M. Jones2011-12-141-1/+1
|
* Version 1.15.11.1.15.11Richard W.M. Jones2011-12-0918-237/+703
|
* fuse: Return EXIT_FAILURE if fuse_main fails.Richard W.M. Jones2011-12-091-1/+1
| | | | | | | | | | fuse_main can return any non-zero value on error. In particular on certain sorts of error such as unsupported -o options it returns 1 (not -1). Therefore make sure any non-zero return is turned into EXIT_FAILURE. (Thanks Pádraig Brady)
* fish: -i option should fail if / is not mountable, but warn about others.Richard W.M. Jones2011-12-091-1/+7
| | | | | | | | In particular this stops a problem with guestmount where if the -i option half-recognizes the guest OS, it would mount the disk (and fail, giving only warnings), leaving the mountpoint unusable. (Thanks Pádraig Brady)
* daemon: Fix utimens so it doesn't hang on named pipes (RHBZ#761460).Richard W.M. Jones2011-12-082-21/+29
| | | | | | | | | | This also adds comprehensive tests for utimens on regular files, directories (RHBZ#761451), named pipes (RHBZ#761460), symbolic links, block and char devices. Note that there is a small change in the (previously undefined) semantics of this call: It now sets the time on a symbolic link itself, not on what the symbolic link points to.
* daemon: Allow utimens to work for directories (RHBZ#761451).Richard W.M. Jones2011-12-081-1/+1
| | | | | | You don't need to open the file O_WRONLY in order to call futimens on the file descriptor. Opening it O_WRONLY fails for directories. Therefore open O_RDONLY instead.
* copy-in/copy-out: Wait for the tar subprocess only (RHBZ#760669).Richard W.M. Jones2011-12-071-26/+35
|
* fish: Improve error messages when no OS / multi-boot OS found with ↵Richard W.M. Jones2011-12-071-2/+30
| | | | inspection (RHBZ#760775).
* let the user explicitly choose ruby and rake programsHilko Bengen2011-12-065-10/+13
|
* Version 1.15.10.1.15.10Richard W.M. Jones2011-12-0618-75/+36
|
* Fix rpcgen post-processing for out-of-tree buildsHilko Bengen2011-12-062-2/+2
|
* ruby: Use RSTRING_PTR, RSTRING_LEN for compat with Ruby 1.9 (RHBZ#760000).Richard W.M. Jones2011-12-051-2/+11
|
* blkid: split the RHEL5 which can't support some optionsWanlong Gao2011-12-051-7/+73
| | | | | | | RHEL5 shoult not support '-p', '-i' and '-o export' options. But we just split it according to the '-p' option. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* TODO: remove the implemented command blkidWanlong Gao2011-12-051-1/+0
| | | | | | Remove the implemented command blkid from TODO lists. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>