From b1af8da73572e5100fa3632cc0278cecfb7a877f Mon Sep 17 00:00:00 2001 From: "Tim St. Clair" Date: Wed, 31 May 2017 17:09:22 -0700 Subject: [PATCH] Fix AppArmor test for docker 1.13 --- test/e2e/common/apparmor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/common/apparmor.go b/test/e2e/common/apparmor.go index 5604ae65a11..f48488d3f9b 100644 --- a/test/e2e/common/apparmor.go +++ b/test/e2e/common/apparmor.go @@ -58,9 +58,9 @@ if touch %[1]s; then elif ! touch %[2]s; then echo "FAILURE: write to %[2]s should be allowed" exit 2 -elif ! grep "%[3]s" /proc/1/attr/current; then +elif ! grep "%[3]s" /proc/self/attr/current; then echo "FAILURE: not running with expected profile %[3]s" - echo "found: $(cat /proc/1/attr/current)" + echo "found: $(cat /proc/self/attr/current)" exit 3 fi`, appArmorDeniedPath, appArmorAllowedPath, appArmorProfilePrefix+f.Namespace.Name)