spiegel_podman/test/e2e
Matthew Heon 166943cb90 Do not copy up when volume is not empty
When Docker performs a copy up, it first verifies that the volume
being copied into is empty; thus, for volumes that have been
modified elsewhere (e.g. manually copying into then), the copy up
will not be performed at all. Duplicate this behavior in Podman
by checking if the volume is empty before copying.

Furthermore, move setting copyup to false further up. This will
prevent a potential race where copy up could happen more than
once if Podman was killed after some files had been copied but
before the DB was updated.

This resolves CVE-2020-1726.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-11 14:04:49 -04:00
..
hooks Add hooks support to podman 2018-04-05 14:13:49 +00:00
attach_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
checkpoint_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
commit_test.go Merge pull request #3081 from baude/remotecommit 2019-06-03 20:58:13 +02:00
common_test.go Merge pull request #4118 from cevich/fix_sig_proxy 2019-09-27 23:21:25 -07:00
config.go Add e2e tests for manifest list support 2019-10-29 13:35:19 -04:00
config_amd64.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
config_ppc64le.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
container_inspect_test.go Add ContainerManager annotation to created containers 2019-09-10 09:37:14 +02:00
cp_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
create_staticip_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
create_test.go Merge pull request #4369 from baude/golandautocodecorrections 2019-10-30 14:29:46 +01:00
diff_test.go Add --latest, -l to 'podman diff' 2019-06-21 13:37:04 +02:00
e2e.coverprofile Enable rootless integration tests 2019-03-19 15:01:48 +01:00
events_test.go podman events format json 2019-08-02 11:47:43 -04:00
exec_test.go Ensure that exec sessions inherit supplemental groups 2020-05-11 14:04:49 -04:00
exists_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
export_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
generate_kube_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
generate_systemd_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
healthcheck_run_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
history_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
images_test.go images: empty list is valid json with --format=json 2019-10-11 21:56:40 +02:00
import_test.go new testcase for podman import --change added 2019-09-27 17:17:12 +09:00
info_test.go split remote tests from distro tests 2019-05-13 12:17:55 -05:00
init_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
inspect_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
kill_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
libpod_suite_remoteclient_test.go Move noCache logic lower in stack 2019-09-26 10:56:24 -04:00
libpod_suite_test.go Move noCache logic lower in stack 2019-09-26 10:56:24 -04:00
load_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
login_logout_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
logs_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
mount_test.go add list mount tests 2019-09-24 11:01:28 +02:00
namespace_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
negative_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
network_create_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
network_test.go inclusion of podman network 2019-08-15 12:49:12 -05:00
pause_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
play_kube_test.go play kube: Container->Ctr 2019-10-11 14:28:14 -04:00
pod_create_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_infra_container_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_inspect_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_kill_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_pause_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_pod_namespaces.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_ps_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_rm_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_start_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_stats_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pod_stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
pod_top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
port_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
ps_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
pull_test.go e2e pull test: use k8s pause instead of alpine 2020-02-10 09:42:17 +01:00
push_test.go build: drop support for ostree 2019-10-30 11:28:10 +01:00
restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
rm_test.go Add new exit codes to rm & rmi for running containers & dependencies 2019-08-01 03:40:29 -04:00
rmi_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_cgroup_parent_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_cleanup_test.go fix unit test to use Expect 2019-09-12 21:01:43 +00:00
run_cpu_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_device_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_dns_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_entrypoint_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_exit_test.go Fix exit code failure 2019-09-17 12:01:02 -04:00
run_memory_test.go tests: enable memory tests for cgroups v2 2019-08-13 21:43:37 +02:00
run_networking_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_ns_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_passwd_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_privileged_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_restart_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
run_selinux_test.go Processes execed into container should match container label 2019-10-29 16:05:42 -04:00
run_signal_test.go Fix sig-proxy=false test and use image cache 2019-10-22 16:17:29 -04:00
run_staticip_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
run_userns_test.go podman: support --userns=ns|container 2019-07-25 23:04:55 +02:00
run_volume_test.go Do not copy up when volume is not empty 2020-05-11 14:04:49 -04:00
runlabel_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
save_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
search_test.go fix search output limit 2019-08-01 16:15:15 -04:00
start_test.go container start: fix regression when using name 2019-10-31 16:33:54 -04:00
stats_test.go stats: list all running containers unless specified otherwise 2019-10-23 13:48:54 +02:00
stop_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
system_df_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
systemd_test.go systemd: expect full path /usr/sbin/init 2019-10-09 23:38:45 +02:00
tag_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
top_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
tree_test.go speed up rootless tests 2019-07-08 12:31:31 -05:00
trust_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
unshare_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
version_test.go fix podman -v regression 2019-07-29 14:47:21 +02:00
volume_create_test.go Add parsing for UID, GID in volume "o" option 2019-10-22 14:32:54 -04:00
volume_inspect_test.go Show volume options in 'volume inspect' 2019-10-18 13:42:31 -04:00
volume_ls_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_prune_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00
volume_rm_test.go Refactor tests when checking for error exit codes 2019-10-16 08:10:07 -07:00
wait_test.go use imagecaches for local tests 2019-05-29 15:12:05 -05:00