Skip to content

Commit

Permalink
Add support for SELinux Systems.
Browse files Browse the repository at this point in the history
* Gave the false trail that the file does not exist.
  • Loading branch information
hdost committed Jul 7, 2022
1 parent e757e74 commit f389979
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ $(1)

endef

# Make docker work when running on SELinux Enforcing Systems.
ifeq ($(shell getenforce),Enforcing)
USE_MOUNT_OPTION := :Z
else
USE_MOUNT_OPTION :=
endif

# Generate all implementations
.PHONY: gen-all
gen-all: gen-cpp gen-csharp gen-go gen-java gen-kotlin gen-objc gen-openapi gen-php gen-python gen-ruby

OTEL_DOCKER_PROTOBUF ?= otel/build-protobuf:0.9.0
PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD} -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}
PROTOC := docker run --rm -u ${shell id -u} -v${PWD}:${PWD}$(USE_MOUNT_OPTION) -w${PWD} ${OTEL_DOCKER_PROTOBUF} --proto_path=${PWD}

PROTO_GEN_CPP_DIR ?= $(GENDIR)/cpp
PROTO_GEN_CSHARP_DIR ?= $(GENDIR)/csharp
Expand Down

0 comments on commit f389979

Please sign in to comment.