From ea423110cca348337ff3bbc75fbd487fb462ac6c Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Tue, 25 Oct 2016 12:04:58 -0400 Subject: [PATCH] Remove SELinux relabel of Kubelet dir from test-e2e-node.sh --- hack/make-rules/test-e2e-node.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/hack/make-rules/test-e2e-node.sh b/hack/make-rules/test-e2e-node.sh index 8213de40c2..7198af9df3 100755 --- a/hack/make-rules/test-e2e-node.sh +++ b/hack/make-rules/test-e2e-node.sh @@ -152,20 +152,6 @@ else test_args="$test_args --disable-kubenet=true" fi - # On selinux enabled systems, it might - # require to relabel /var/lib/kubelet - if which selinuxenabled &> /dev/null && \ - selinuxenabled && \ - which chcon > /dev/null ; then - mkdir -p /var/lib/kubelet - if [[ ! $(ls -Zd /var/lib/kubelet) =~ svirt_sandbox_file_t ]] ; then - echo "Applying SELinux label to /var/lib/kubelet directory." - if ! sudo chcon -Rt svirt_sandbox_file_t /var/lib/kubelet; then - echo "Failed to apply selinux label to /var/lib/kubelet." - fi - fi - fi - # Test using the host the script was run on # Provided for backwards compatibility go run test/e2e_node/runner/local/run_local.go --ginkgo-flags="$ginkgoflags" \