diff --git a/Makefile b/Makefile index dcaebd1729..e73638bda4 100644 --- a/Makefile +++ b/Makefile @@ -355,6 +355,7 @@ endif $(GO_LDFLAGS) '$(LDFLAGS_PODMAN)' \ -tags "$(BUILDTAGS)" \ -o $@ ./cmd/podman + test -z "${SELINUXOPT}" || chcon -t container_runtime_exec_t $@ # Disambiguate Linux vs Darwin/Windows platform binaries under distinct "bin" dirs $(SRCBINDIR): diff --git a/hack/bats b/hack/bats index ba26e0444a..20d4faaa08 100755 --- a/hack/bats +++ b/hack/bats @@ -64,9 +64,6 @@ Examples: export PODMAN=${PODMAN:-$(pwd)/bin/podman} export QUADLET=${QUADLET:-$(pwd)/bin/quadlet} -# Because 'make' doesn't do this by default -chcon -t container_runtime_exec_t $PODMAN - # Directory in which TESTS=test/system