mirror of https://github.com/containers/podman.git
Makefile: podman should have correct selinux label
pasta only works when we run as container_runtime_exec_t, now that pasta is the default this means that the current binary will not work when doing local dev without manually fixing the label. There are also other parts where the correct label is important. So as a simple fix always set the proper label in the bin/podman target. This also means we can drop this line from the hack/bats script. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
3e1d2ab874
commit
02403c2e6d
1
Makefile
1
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):
|
||||
|
|
Loading…
Reference in New Issue