pmbootstrap/test
Oliver Smith 4844719b1d pmb: adjust to distcc 3.3 and wrap it with sshd
Overview:
Since Alpine updated to distcc 3.3 last week, pmbootstrap wasn't able to use
distcc for cross compilation anymore. It always falled back to running the
compiler in QEMU (which works, but is a lot slower). The reason for that is,
that distcc requires all compilers that are being used in a whitelist now.

This partially fixes CVE-2004-2687 in distccd, which allowed trivial remote
code execution by any process connecting to the distccd server. We only run
distccd on localhost, but still this can be used for privilege escalation of
sandboxed processes running on the host system (not part of pmbootstrap
chroots).

Because the CVE is only partially fixed (see the comment in
`pmb/chroot/distccd.py` for details), we make sure that only the building
chroots can talk to the distcc server by running distcc over ssh.

Details:
* Completely refactored `pmb/chroot/distccd.py` to run distcc over ssh
  * Store the running distcc server's arguments as JSON now, not as INI
* Make debugging distcc issues easy:
  * Set DISTCC_BACKOFF_PERIOD=0, so the distcc client will not ignore the
    server after errors happened (this masks the original error!)
  * New pmbootstrap parameters:
    * `--distcc-nofallback`: avoids falling back to compiling with QEMU and not
	   throwing an error
	* `--ccache-disable`: avoid ccache (when the compiler output is cached,
	  distcc does not get used)
  * `--verbose` prints verbose output of the distcc too
  * New test case, that uses the new pmbootstrap parameters to force
	compilation through distcc, and shows the output of distcc and distccd in
	verbose mode on error (as well as the log of sshd)
2018-07-26 09:47:23 +00:00
..
testdata Remove github.com references 2018-06-30 09:00:48 +02:00
check_checksums.py static code analysis: make it pass flake8 3.5.0 2018-07-11 18:58:29 +00:00
check_devices_in_wiki.py Wiki CI: require all devices to be booting 2018-07-22 23:19:02 +02:00
static_code_analysis.sh static code analysis: make it pass flake8 3.5.0 2018-07-11 18:58:29 +00:00
test_apk_static.py Index parser: support multiple package providers (#1202) 2018-02-20 19:52:28 +00:00
test_aportgen.py aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
test_aportgen_device_wizard.py deviceinfo: remove external_disk_install and external_disk, use external_storage instead (#1301) 2018-03-07 22:35:02 +00:00
test_aports.py test/aports: detect linux-firmware-* in depends 2018-07-25 20:13:37 +00:00
test_bootimg.py pmb: add -f (force) parameter to bootimg_analyze 2018-07-06 21:57:18 +02:00
test_build_is_necessary.py Index parser: support multiple package providers (#1202) 2018-02-20 19:52:28 +00:00
test_build_package.py pmb: adjust to distcc 3.3 and wrap it with sshd 2018-07-26 09:47:23 +00:00
test_buildroot_aarch64_init.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
test_chroot_interactive_shell.py pmbootstrap: kill process if silent for 5 minutes (rewrite logging) 2018-07-14 01:13:28 +00:00
test_config_user.py Remove timestamp based rebuilds (#1174) 2018-01-28 23:27:33 +00:00
test_cross_compile_distcc.py pmb: adjust to distcc 3.3 and wrap it with sshd 2018-07-26 09:47:23 +00:00
test_file.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
test_folder_size.py Remove github.com references 2018-06-30 09:00:48 +02:00
test_frontend.py pmbootstrap build --src: override source for any package (#1210) 2018-02-19 22:04:01 +00:00
test_install.py Make proprietary drivers optional (1/2): pmbootstrap changes (#1254) 2018-02-24 21:49:10 +00:00
test_keys.py Index parser: support multiple package providers (#1202) 2018-02-20 19:52:28 +00:00
test_mount.py Happy new year! (update copyright to 2018) 2018-01-04 04:53:35 +01:00
test_newapkbuild.py Wrap Alpine's newapkbuild (#894) 2018-01-15 22:00:11 +00:00
test_parse_apkbuild.py pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363) 2018-04-03 23:50:09 +00:00
test_parse_apkindex.py Skip virtual packages when parsing APKINDEX (#1278) 2018-03-10 13:15:30 +00:00
test_parse_depends.py Display wiki link on dependency error (#1410) 2018-04-23 20:51:06 +00:00
test_pkgrel_bump.py pmb: fix test suite not running through twice 2018-07-15 20:52:41 +00:00
test_qemu_running_processes.py s/system partition/rootfs: fix remaining mentions 2018-07-15 23:41:31 +02:00
test_questions.py pmbootstrap init: kernel selection / remove linux-pmos-lts (#1363) 2018-04-03 23:50:09 +00:00
test_repo.py aportgen: Gracefully handle old aports_upstream (#1291) 2018-03-11 14:18:21 +00:00
test_run_core.py pmbootstrap: kill process if silent for 5 minutes (rewrite logging) 2018-07-14 01:13:28 +00:00
test_shell_escape.py pmbootstrap: kill process if silent for 5 minutes (rewrite logging) 2018-07-14 01:13:28 +00:00
test_soname_bump.py Gracefully handle packages breaking because of soname bumps (#1116) 2018-01-14 01:26:42 +00:00
test_upstream_compatibility.py upstream compatibility test: check against x86_64 2018-05-20 22:04:44 +02:00
test_version.py Testsuite: Run UIs in Qemu and check running processes and more (#982) 2018-02-02 00:16:29 +00:00
test_version_validate.py version.py: fix validation of 6.0_0002 (#1160) 2018-01-25 18:23:55 +00:00
testcases_fast.sh pmb: fix test suite not running through twice 2018-07-15 20:52:41 +00:00