From 64b8eee2dd169ab83f6aac688a186a696a37303c Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 11 Dec 2017 11:30:31 +0100 Subject: [PATCH] tests: verify copied files have the correct SELinux label Signed-off-by: Giuseppe Scrivano --- tests/integration/test_system_containers_rpm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration/test_system_containers_rpm.sh b/tests/integration/test_system_containers_rpm.sh index d2d3a153..6d69e6ee 100755 --- a/tests/integration/test_system_containers_rpm.sh +++ b/tests/integration/test_system_containers_rpm.sh @@ -96,6 +96,7 @@ for i in /usr/local/lib/renamed-atomic-test-system-hostfs /usr/local/lib/secret- do assert_matches $i rpm_file_list test -e $i + matchpathcon -V $i done # This is not a template file, the $RECEIVER is not replaced @@ -149,6 +150,7 @@ ${ATOMIC} install --system --system-package=no atomic-test-system-hostfs for i in /usr/local/lib/renamed-atomic-test-system-hostfs /usr/local/lib/secret-message /usr/local/lib/secret-message-template; do test -e $i + matchpathcon -V $i done echo "This message will not be deleted" > /usr/local/lib/secret-message