Skip to content

Commit 3ff2db7

Browse files
authored
Merge pull request #14939 from eparis/fix-matchpathcon
Fix matchpathcon to only print the label
2 parents 27d3f2c + 1805da9 commit 3ff2db7

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)