summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add 'setcon', 'getcon' commands to set and get the SELinux context.Richard Jones2009-08-138-1/+122
|
* Return error if allocations fail.Richard Jones2009-08-121-0/+12
|
* Add documentation for SELinux configuration.Richard Jones2009-08-121-4/+42
| | | | Also use L</...> to link between sections.
* Spelling fix: labelled -> labeled.Richard Jones2009-08-121-4/+4
|
* If using SELinux, mount /selinux in the appliance.Richard Jones2009-08-123-2/+15
| | | | | | If selinux=1 on the Linux kernel command line, then we mount /selinux in the appliance. We will also bind-mount this directory into guests when we run commands.
* Allow selinux=? kernel flag to be controlled.Richard Jones2009-08-122-5/+49
| | | | Adds new API calls to set and get this flags.
* fish: don't read freed memoryJim Meyering2009-08-121-4/+4
| | | | | | | * fish/rc.c (rc_remote): Close file handle only *after* xdr_destroy, because that latter may flush its file handle (implicated via xdrstdio_create). FYI, this failure is triggered for me only when MALLOC_PERTURB_ is set to nonzero < 256 in my environment.
* doc: improve emacs snippetsJim Meyering2009-08-121-2/+10
| | | | | * HACKING: Make (setq indent-tabs-mode nil) apply to nearly all files, not just C-mode ones.
* Fix regression test rhbz503169c10.sh.Richard Jones2009-08-121-0/+3
| | | | | | | 'll' command has changed semantics very slightly (see commit 6727e7c8bdf1cb39264a9de6333d228b51c39956). We need to fix this test so it doesn't try to run the ll command without a mounted disk.
* Add contents of /proc/mounts to the debugging information.Richard Jones2009-08-111-0/+1
|
* daemon/ls: make do_ll require root, like all the restJim Meyering2009-08-111-7/+10
| | | | | * ls.c (do_ll): Do invoke "NEED_ROOT" here, and add a FIXME to provide a "debug ll" command with the semantics we're removing.
* build: avoid first-time configure-from-clone failureJim Meyering2009-08-101-0/+3
| | | | | | * bootstrap: Run autopoint before using the file it creates, po/Makevars.template. Reported by Richard Jones. Details here: https://www.redhat.com/archives/libguestfs/2009-August/msg00135.html
* build: enable automake's silent rules optionJim Meyering2009-08-102-0/+6
| | | | | | | * configure.ac: Use AM_SILENT_RULES([yes]). Those who want verbose build output may configure with --disable-silent-rules or use "make V=1". * daemon/configure.ac: Likewise.
* build: daemon/do_debug: parameters aren't always unusedJim Meyering2009-08-101-1/+7
| | | | | | | | | * daemon/debug.c (MAYBE_UNUSED): Define. (do_debug): Mark parameters as unused only when they really are unused. Spotted by Richard Jones. SCALAR(0xdd8370) prefer sizeof *VAR sizeof TYPE (no semantic change)
* build: avoid warnings in daemon/inotify.cJim Meyering2009-08-101-3/+4
| | | | | | | | Avoid "comparison between signed and unsigned integer expressions" warnings. If it's at all hard or risky to avoid this type of warning, then it's not worthwhile. Here, it's easy and safe. * daemon/inotify.c (inotify_posn): Declare local to be of unsigned type. (do_inotify_read, do_inotify_files): Likewise.
* build: avoid warnings in daemon/guestfsd.cJim Meyering2009-08-101-2/+2
| | | | | * daemon/guestfsd.c (print_arginfo, print_shell_quote): Mark each "info" parameter as unused.
* build: avoid warnings in daemon/debug.cJim Meyering2009-08-101-1/+1
| | | | * daemon/debug.c (do_debug): Mark parameters as unused.
* define ATTRIBUTE_UNUSEDJim Meyering2009-08-101-0/+10
| | | | * daemon/daemon.h (__attribute__, ATTRIBUTE_UNUSED): Define.
* daemon/file.c: remove duplicate absolute-path checkJim Meyering2009-08-101-1/+0
| | | | | | * daemon/file.c (do_file): Remove redundant use of ABS_PATH. It's redundant because the preceding line invokes NEED_ROOT_OR_IS_DEVICE, which also invokes ABS_PATH.
* Tidy up generation of java/Makefile.inc.Richard Jones2009-08-072-7/+43
| | | | | (Just whitespace and comment changes, and small restructuring of the code).
* Debug: Improve the way the qemu command line is printed.Richard Jones2009-08-071-7/+31
| | | | | | | | | | | | | | | | Change the way the qemu command is displayed to look like this: /usr/bin/qemu-kvm \ -drive file=/tmp/test.img,cache=off,if=virtio \ -m 500 \ -no-reboot \ -kernel /tmp/libguestfsHBJHRh/kernel \ -initrd /tmp/libguestfsHBJHRh/initrd \ [...] This allows the command line to be copied and pasted directly into the shell, and also makes it simpler to read.
* Allow network interface to be configured.Richard Jones2009-08-072-1/+12
| | | | | | | | Add ./configure --with-net-if=(virtio|ne2k_pci) option. This lets you workaround the following virtio_net bug: https://bugzilla.redhat.com/show_bug.cgi?id=516022
* Tests: swapon_device test mkswap /dev/sda1 instead of /dev/sdb.Richard Jones2009-08-071-4/+17
| | | | | | | | On RHEL 5, mkswap /dev/sdb fails, even with the '-f' option (contradictory to what the manual page says). This commit adds a new 'InitPartition' initialization which just creates /dev/sda1, and then does the swap test on that.
* Always pass mkswap -f parameter.Richard Jones2009-08-061-2/+2
| | | | | Otherwise mkswap will give a silly error if you ask it to swap on a whole device.
* Tests: Don't test block size in statvfs test.Richard Jones2009-08-061-2/+1
| | | | | | | The block size changes between kernel releases, causing a false failure in the tests. The error was: test_statvfs_0: bsize was 65536, expected 131072
* Version 1.0.661.0.66Richard Jones2009-08-063-1052/+972
|
* RHEL 5: inotify_init1 call did not exist on RHEL 5.Richard Jones2009-08-062-1/+23
|
* Fix: segfault in tab completion (RHBZ#516024).Richard Jones2009-08-061-2/+2
| | | | | Actually this fixes two bugs: 'strs' was not being freed on every path, and the tab completion segfault described in the bug report.
* Fix errno check in readdir in devsparts.cMatthew Booth2009-08-061-3/+5
|
* Add ne2k-pci driver to the appliance.Richard Jones2009-08-062-1/+5
| | | | | This allows people to use the ne2k-pci network driver, for those situations where the virtio_net driver is broken (cough 516022 cough).
* Make user network numbering explicit.Richard Jones2009-08-061-2/+2
| | | | | | Use: -net user,vlan=0,net=10.0.2.0/8 just to make the (already implicit) 10.0.2.x network explicit.
* appliance: More debug added to /init.Richard Jones2009-08-061-0/+2
|
* Exclude daemon/lib and daemon/tests from being added to po/POTFILES.inMatthew Booth2009-08-061-0/+2
|
* build: remove bootstrap's --gnulib-srcdir optionJim Meyering2009-08-061-39/+5
| | | | | | | ...because it probably didn't work, and even if it did, we've discovered that using a separate git repo like that can lead to subtle mix-ups. Also, fix invocation of gnulib-tool in daemon/.
* build: fix build failureJim Meyering2009-08-061-1/+1
| | | | | * bootstrap (gnulib_tool): Create lib and tests directories under daemon/ before running gnulib-tool there.
* daemon: use gnulibJim Meyering2009-08-065-1/+75
| | | | | | | | | | | | | | | | | * daemon/Makefile.am (SUBDIRS): Define. (AM_CPPFLAGS): Define, to include from gnulib's lib/ (LDADD): Define, to link with gnulib's libgnu.a. * daemon/configure.ac: Use AC_CONFIG_AUX_DIR([build-aux]), gl_EARLY and gl_INIT. (AC_CONFIG_FILES): Add lib/Makefile and tests/Makefile * daemon/m4/gnulib-cache.m4: New file, generated by running ../.gnulib/gnulib-tool --import --with-tests hash * daemon/.gitignore: Ignore all of the imported files. build: tell bootstrap about daemon/ * bootstrap: Run gnulib-tool --update in daemon/. Remove bootstrap's --gnulib-srcdir option, because it probably didn't work, and even if it did, we've discovered that using a separate git repo like that can lead to subtle mix-ups.
* appliance: Include more debug output in the /init script.Richard Jones2009-08-061-5/+12
| | | | | Output more debugging information from this script, to enhance the usefulness of LIBGUESTFS_DEBUG output.
* Recognise cd-rom devices in devsparts.cMatthew Booth2009-08-061-72/+96
| | | | | | Also: * Un-duplicate device detection code by creating a common mapping function. * Add some more comments.
* Fix test failures in upload and download (RHBZ#515764)Matthew Booth2009-08-061-2/+4
| | | | | | | The tests hardcoded an MD5 of the test file, COPYING.LIB, whose contents had change. This change causes it to compute the MD5 rather than hardcoding it. OCaml provided by rjones.
* Add copyright and license notice to regressions/test-noexec-stack.plRichard Jones2009-08-061-0/+15
|
* Add some newly-untracked files to .gitignoreMatthew Booth2009-08-051-0/+11
|
* Fix swapon_label testMatthew Booth2009-08-051-1/+3
| | | | | | | | The swapon label test has a side-effect, in that it creates a new partition. This causes the later failure of the list_partitions test. This change causes the swapon_label test to zero /dev/sdb after the test, and then re-read the partition table.
* Add resultant change to po/POTFILES.inMatthew Booth2009-08-051-0/+1
| | | | I missed this when committing 7e9cb884492aec243337ffc8e4432a9ff2690956
* Add a test for an executable stack in resultant binariesMatthew Booth2009-08-052-3/+69
|
* build: generate some just-removed files in po/Jim Meyering2009-08-051-0/+15
| | | | * bootstrap: Generate po/Makevars and po/LINGUAS.
* build: remove trailing blank lines; enable the syntax-check ruleJim Meyering2009-08-0411-11/+0
| | | | | | | | | | | | | | * cfg.mk (disable_temporarily): Remove sc_prohibit_trailing_blank_lines. * appliance/Makefile.am: Remove trailing blank line(s). * appliance/debian/modules/y0_install-guestfsd: Likewise. * appliance/make.sh.in: Likewise. * appliance/packagelist.in: Likewise. * appliance/update.sh.in: Likewise. * haskell/run-bindtests: Likewise. * ocaml/run-bindtests: Likewise. * python/run-python-tests: Likewise. * recipes/squashfs.example: Likewise. * ruby/run-ruby-tests: Likewise.
* build: exempt symlinks from trailing-blank-line prohibitionJim Meyering2009-08-041-2/+3
| | | | * cfg.mk (sc_prohibit_trailing_blank_lines): Exempt symlinks.
* build: enable syntax-check: TAB-only indentation in MakefilesJim Meyering2009-08-041-1/+0
| | | | * cfg.mk (disable_temporarily): Remove sc_makefile_TAB_only_indentation.
* build: tweak HACKING so we pass "make syntax-check"Jim Meyering2009-08-041-2/+2
| | | | * HACKING: Convert leading TABs.
* build: remove trailing blanks, enable syntax-checkJim Meyering2009-08-044-4/+4
| | | | | | | * regressions/test-cancellation-download-librarycancels.sh: * src/generator.ml: * cfg.mk (disable_temporarily): Remove sc_trailing_blank. * .x-sc_trailing_blank: New file.