mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
Move ambient capabilties behind build tag
This moves the ambient capability support behind an `ambient` build tag so that it is only compiled upon request. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ static: $(RUNC_LINK)
|
||||
CGO_ENABLED=1 go build -i -tags "$(BUILDTAGS) cgo static_build" -ldflags "-w -extldflags -static -X main.gitCommit=${COMMIT} -X main.version=${VERSION}" -o runc .
|
||||
|
||||
release: $(RUNC_LINK)
|
||||
@flag_list=(seccomp selinux apparmor static); \
|
||||
@flag_list=(seccomp selinux apparmor static ambient); \
|
||||
unset expression; \
|
||||
for flag in "$${flag_list[@]}"; do \
|
||||
expression+="' '{'',$${flag}}"; \
|
||||
|
||||
Reference in New Issue
Block a user