k3s/test/e2e/common
Kubernetes Submit Queue 9ce93ed50a Merge pull request #39496 from stevekuznetsov/skuznets/fix-e2e-container-context
Automatic merge from submit-queue (batch tested with PRs 39493, 39496)

Use privileged containers for host path e2e tests

Test containers need to run as spc_t in order to interact with the host
filesystem under /tmp, as the tests for HostPath are doing. Docker will
transition the container into this domain when running the container as
privileged.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>

Currently, this test fails with AVC denials like:
```
time->Thu Jan  5 10:17:51 2017
type=SYSCALL msg=audit(1483629471.846:6623): arch=c000003e syscall=257 success=no exit=-13 a0=ffffffffffffff9c a1=c820010120 a2=80241 a3=1a4 items=0 ppid=4112 pid=4130 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="mt" exe="/mt" subj=system_u:system_r:svirt_lxc_net_t:s0:c123,c328 key=(null)
type=AVC msg=audit(1483629471.846:6623): avc:  denied  { write } for  pid=4130 comm="mt" name="sub-path" dev="xvda2" ino=118491348 scontext=system_u:system_r:svirt_lxc_net_t:s0:c123,c328 tcontext=system_u:object_r:container_runtime_tmp_t:s0 tclass=dir
```

```release-note
NONE
```

/cc @ncdc @pmorie
2017-01-06 08:44:20 -08:00
..
BUILD Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
configmap.go ConfigMaps populate environment variables 2017-01-03 11:02:15 -05:00
container_probe.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
docker_containers.go test/e2e 2016-11-23 15:53:09 -08:00
downward_api.go test/e2e 2016-11-23 15:53:09 -08:00
downwardapi_volume.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
empty_dir.go refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
expansion.go test/e2e 2016-11-23 15:53:09 -08:00
host_path.go Use privileged containers for host path e2e tests 2017-01-05 17:24:09 -05:00
init_container.go test/e2e 2016-11-23 15:53:09 -08:00
kubelet_etc_hosts.go run hack/update-all.sh 2016-11-23 15:53:09 -08:00
networking.go
pods.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
privileged.go Remove extraneous curl, pods, etc from privileged pod test 2016-11-29 12:52:16 -08:00
secrets.go fix permissions when using fsGroup 2016-12-06 14:04:16 -06:00
sysctl.go GetOptions - fix tests 2016-12-09 09:42:01 +01:00
util.go
volumes.go rename /release_1_5 to /clientset 2016-12-14 12:39:48 -08:00