Skip to content

Commit

Permalink
Reapply "setenforce fails when running in a container"
Browse files Browse the repository at this point in the history
This reverts commit b8abc08.
  • Loading branch information
jpopelka committed May 28, 2024
1 parent e768b4d commit 9f5df15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtps-run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if [ -n "$SELINUX" ]; then
fi
if [ -e '/usr/sbin/setenforce' ]; then
echo "Set selinux enforce to: $SELINUX"
setenforce "$SELINUX"
setenforce "$SELINUX" || : # Always return 0 to be able to run/test in a container
else
debug "Skipping setenforce. 'setenforce' command is part of libselinux-utils package."
fi
Expand Down

0 comments on commit 9f5df15

Please sign in to comment.