Skip to content

Commit 1805da9

Browse files
committed
Fix matchpathcon to only print the label
It was printing the path and the label, then trying to use that as the label.
1 parent 27d3f2c commit 1805da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/setup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function os::test::extended::setup () {
8484

8585
# make sure the volume dir has the same label as we would apply to the default VOLUME_DIR
8686
if selinuxenabled; then
87-
local label=$(matchpathcon -m dir /var/lib/openshift/openshift.local.volumes)
87+
local label=$(matchpathcon -n -m dir /var/lib/openshift/openshift.local.volumes)
8888
${sudo} chcon "${label}" ${VOLUME_DIR}
8989
fi
9090
CONFIG_VERSION=""

0 commit comments

Comments
 (0)