moby/integration-cli
Brian Goff 5bbf5cc671 Set selinux label on local volumes from mounts API
When using a volume via the `Binds` API, a shared selinux label is
automatically set.
The `Mounts` API is not setting this, which makes volumes specified via
the mounts API useless when selinux is enabled.

This fix adopts the same selinux label for volumes on the mounts API as on
binds.
Note in the case of both the `Binds` API and the `Mounts` API, the
selinux label is only applied when the volume driver is the `local`
driver.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-09-19 10:46:38 -04:00
..
checker Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
cli Fixes for dnephin review 2017-09-14 19:27:09 +02:00
daemon Cleanup daemon.LoadBusybox() to use the API instead of client 2017-08-25 17:24:25 -04:00
environment Refactor test environment 2017-08-30 13:13:18 -04:00
fixtures Merge pull request #34495 from ripcurld0/registry_mirror_json 2017-09-18 21:59:14 -07:00
registry Revert "Planned 1.13 deprecation: email from login" 2017-03-15 10:43:18 -07:00
request Set client version instead of negotiating it 2017-09-14 19:27:09 +02:00
requirement Refactor test environment 2017-08-30 13:13:18 -04:00
benchmark_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
check_test.go Merge pull request #34805 from chris-crone/containerize-integration-tests 2017-09-18 21:11:06 +02:00
daemon_swarm_hack_test.go Small cleanups on integration cli 2017-01-12 16:57:59 +01:00
docker_api_attach_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_auth_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_build_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_api_containers_test.go Set selinux label on local volumes from mounts API 2017-09-19 10:46:38 -04:00
docker_api_containers_windows_test.go Windows: Add named pipe mount support 2017-08-07 11:34:36 -07:00
docker_api_create_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_events_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_api_exec_resize_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_exec_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_images_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_api_info_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_inspect_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_inspect_unix_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_api_ipcmode_test.go docker_api_ipcmode_test: add SameHostDaemon req 2017-08-24 17:02:21 +03:00
docker_api_logs_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_network_test.go Remove race and split TestAPINetworkInspect test 2017-09-14 19:27:09 +02:00
docker_api_resize_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_session_test.go Remove testutil.ReadBody 2017-08-22 17:15:26 -04:00
docker_api_stats_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_stats_unix_test.go Update request.* signature to remove the host 2017-03-06 16:41:33 +01:00
docker_api_swarm_config_test.go Cleanup client not found errors. 2017-09-11 19:53:18 -04:00
docker_api_swarm_node_test.go split docker_api_swarm_test.go into multiple files 2017-02-11 00:18:01 +08:00
docker_api_swarm_secret_test.go Cleanup client not found errors. 2017-09-11 19:53:18 -04:00
docker_api_swarm_service_test.go Replace service ps cli tests with service inspect API test. 2017-08-25 17:27:41 -04:00
docker_api_swarm_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_test.go Remove testutil.ReadBody 2017-08-22 17:15:26 -04:00
docker_api_update_unix_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_api_volumes_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_attach_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_attach_unix_test.go Skip some tests for E2E 2017-09-14 19:27:09 +02:00
docker_cli_authz_plugin_v2_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_authz_unix_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_build_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_build_unix_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_by_digest_test.go Fix tests that depend on clean environment 2017-09-14 19:27:09 +02:00
docker_cli_commit_test.go *: normalize the use of normalize 2017-08-22 15:25:31 -07:00
docker_cli_config_create_test.go Add integration test coverage for configs 2017-05-11 10:18:44 -07:00
docker_cli_config_inspect_test.go Add integration test coverage for configs 2017-05-11 10:18:44 -07:00
docker_cli_config_ls_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_cp_from_container_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_cp_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_cp_to_container_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_cp_to_container_unix_test.go daemon/archive.go: Fix copy routines to preserve UID. 2017-04-12 10:33:19 +00:00
docker_cli_cp_utils_test.go Optimize some wrong usage and spelling 2017-09-07 09:44:08 +08:00
docker_cli_create_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_create_unix_test.go validate mount path for tmpfs 2017-01-20 06:01:48 +00:00
docker_cli_daemon_plugins_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_daemon_test.go Merge pull request #34332 from clnperez/logrus-revendor 2017-09-14 11:29:05 -07:00
docker_cli_diff_test.go Introduce cli.Wait* fuctions 2017-04-14 19:27:33 +02:00
docker_cli_events_test.go Optimize some wrong usage and spelling 2017-09-07 09:44:08 +08:00
docker_cli_events_unix_test.go Avoid failing the test if container is already stopped 2017-09-05 17:19:57 +02:00
docker_cli_exec_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_exec_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_export_import_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_external_graphdriver_unix_test.go LCOW: Implemented support for docker cp + build 2017-09-14 12:07:52 -07:00
docker_cli_external_volume_driver_unix_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_health_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_history_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_images_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_import_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_info_test.go Fix tests that depend on clean environment 2017-09-14 19:27:09 +02:00
docker_cli_info_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_inspect_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_kill_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_links_test.go Remove testutil.ConvertSliceOfStringsToMap 2017-08-22 17:15:26 -04:00
docker_cli_links_unix_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_login_test.go Spelling fixes 2017-07-03 13:13:09 -07:00
docker_cli_logout_test.go Disable legacy (v1) registries by default 2017-06-12 11:04:28 +02:00
docker_cli_logs_bench_test.go Fixes some issues with jsonfile write/read 2016-03-21 11:05:58 -04:00
docker_cli_logs_test.go integration-cli/docker_cli_logs_test.go: Wait() 2017-09-18 11:18:36 -07:00
docker_cli_nat_test.go Introduce cli.Wait* fuctions 2017-04-14 19:27:33 +02:00
docker_cli_netmode_test.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
docker_cli_network_unix_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_oom_killed_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_pause_test.go Allow stopping of paused container 2017-07-12 10:35:48 -04:00
docker_cli_plugins_logdriver_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_cli_plugins_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_port_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_proxy_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_prune_unix_test.go Enabling ILB/ELB on windows using per-node, per-network LB endpoint. 2017-09-18 20:27:56 +00:00
docker_cli_ps_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_pull_local_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_pull_test.go [integration-cli] fix p/z HubPullSuite tests 2017-09-14 09:42:09 -04:00
docker_cli_pull_trusted_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_push_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_registry_user_agent_test.go Simplify DockerRegistrySuite.TestUserAgentPassThrough() 2017-06-12 20:18:03 +02:00
docker_cli_rename_test.go Remove assertions that were testing CLI behaviour. 2017-08-31 18:19:17 -04:00
docker_cli_restart_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_rm_test.go create unit tests for rm (running, paused, restarting) errormessages 2017-04-03 21:58:05 +02:00
docker_cli_rmi_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_run_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_run_unix_test.go Merge pull request #34550 from kolyshkin/libeudev 2017-09-18 21:03:31 -07:00
docker_cli_save_load_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_save_load_unix_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_search_test.go fix some ineffectual assignments 2017-01-24 11:16:19 +01:00
docker_cli_secret_create_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_cli_secret_inspect_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
docker_cli_secret_ls_test.go make secret ls support filters in CLI 2017-03-27 10:16:45 +08:00
docker_cli_service_create_test.go Service alias should not be copied to task alias 2017-06-07 13:05:15 -07:00
docker_cli_service_health_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_service_logs_test.go Merge pull request #34554 from dnephin/use-release-version-of-docker-cli 2017-08-30 13:43:39 -04:00
docker_cli_service_scale_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_service_update_test.go Update CLI commit hash 2017-05-18 12:23:28 -07:00
docker_cli_sni_test.go Disable flakey TestClientSetsTLSServerName 2016-02-02 19:56:31 -08:00
docker_cli_start_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_stats_test.go [integration] make runSleepingContainer use cli package 2017-04-16 23:39:30 +02:00
docker_cli_stop_test.go Remove pkg/integration and move it to testutil or integration-cli 2016-12-30 18:26:34 +01:00
docker_cli_swarm_test.go Add support for .Node.Hostname templating in swarm services 2017-09-02 10:06:16 +02:00
docker_cli_swarm_unix_test.go Pin docker-cli version to the 17.06-ce release version 2017-08-22 14:29:16 -04:00
docker_cli_tag_test.go Introduce a cli package for test-integration 2017-03-23 18:35:22 +01:00
docker_cli_top_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_update_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_cli_update_unix_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_cli_userns_test.go Remove RunCommandPipelineWithOutput 2017-08-22 17:15:26 -04:00
docker_cli_v2_only_test.go Use tempdir instead of working directory as build-context 2017-06-12 20:14:48 +02:00
docker_cli_volume_test.go Various fixes 2017-09-15 16:01:15 +02:00
docker_cli_wait_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_deprecated_api_v124_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_deprecated_api_v124_unix_test.go Stop using deprecated SockRequest 2017-08-23 17:10:04 -04:00
docker_experimental_network_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
docker_hub_pull_suite_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
docker_utils_test.go Fixes for dnephin review 2017-09-14 19:27:09 +02:00
events_utils_test.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
fixtures_linux_daemon_test.go TestRunSeccompProfileAllow32Bit: fix 2017-09-17 22:04:31 -07:00
requirements_test.go Fixes after dnephin review 2017-09-14 19:27:09 +02:00
requirements_unix_test.go Check integration test requirements using daemon 2017-09-14 19:27:09 +02:00
test_vars_exec_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_noexec_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_noseccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_seccomp_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_test.go Use testEnv methods and remove most of the global variables 2017-01-17 12:39:08 +01:00
test_vars_unix_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
test_vars_windows_test.go Introduce a environment package in integration-cli 2016-12-29 11:00:50 +01:00
trust_server_test.go Update tests to use icmd 2017-08-25 12:07:30 -04:00
utils_test.go Fix Windows build 2017-09-14 19:27:09 +02:00