-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from kinvolk/alban_falco
Publish events to Falco via a Falco plugin
- Loading branch information
Showing
251 changed files
with
36,625 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Use the same base image as falco to ensure compatibility with glibc version | ||
FROM golang:buster as builder | ||
|
||
# Cache go modules so they won't be downloaded at each build | ||
COPY go.mod go.sum /src/ | ||
RUN cd /src && go mod download | ||
|
||
COPY ./ /src | ||
RUN cd /src && make -C falco-plugin | ||
|
||
# Use the following command to get the built files: | ||
# DOCKER_BUILDKIT=1 docker build -f falco-plugin/Dockerfile --output=falco-plugin/ . | ||
FROM scratch AS deploy-source | ||
COPY --from=builder /src/falco-plugin/*.so / | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Copyright (C) 2022 The Falco Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations under the License. | ||
# | ||
|
||
SHELL=/bin/bash -o pipefail | ||
GO ?= go | ||
|
||
NAME := seccompagent | ||
OUTPUT := lib$(NAME).so | ||
|
||
ifeq ($(DEBUG), 1) | ||
GODEBUGFLAGS= GODEBUG=cgocheck=2 | ||
else | ||
GODEBUGFLAGS= GODEBUG=cgocheck=0 | ||
endif | ||
|
||
all: $(OUTPUT) | ||
|
||
clean: | ||
@rm -f *.so | ||
|
||
$(OUTPUT): *.go clean | ||
@$(GODEBUGFLAGS) $(GO) build -buildmode=c-shared -o $(OUTPUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.PHONY: generated-files | ||
generated-files: seccomp-agent.pb.go | ||
|
||
seccomp-agent.pb.go: seccomp-agent.proto | ||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative seccomp-agent.proto | ||
|
||
clean: | ||
rm -f seccomp-agent.pb.go seccomp-agent_grpc.pb.go |
Oops, something went wrong.