tools: genpolicy static checks

Package genpolicy and enable static checks for it.

Fixes: #8813

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2024-01-12 16:43:27 +00:00
parent 0dc00ae373
commit 201eec628a
9 changed files with 31 additions and 41 deletions

View File

@@ -93,6 +93,9 @@ cloud-hypervisor-glibc-tarball:
firecracker-tarball:
${MAKE} $@-build
genpolicy-tarball:
${MAKE} $@-build
kata-ctl-tarball:
${MAKE} $@-build

View File

@@ -90,6 +90,7 @@ options:
cloud-hypervisor
cloud-hypervisor-glibc
firecracker
genpolicy
kata-ctl
kernel
kernel-confidential
@@ -713,6 +714,10 @@ install_agent_ctl() {
install_tools_helper "agent-ctl"
}
install_genpolicy() {
install_tools_helper "genpolicy"
}
install_kata_ctl() {
install_tools_helper "kata-ctl"
}
@@ -787,6 +792,8 @@ handle_build() {
firecracker) install_firecracker ;;
genpolicy) install_genpolicy ;;
kata-ctl) install_kata_ctl ;;
kernel) install_kernel ;;
@@ -893,6 +900,7 @@ main() {
agent-ctl
cloud-hypervisor
firecracker
genpolicy
kata-ctl
kernel
kernel-experimental

View File

@@ -9,11 +9,14 @@ ARG RUST_TOOLCHAIN
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
RUN apk --no-cache add \
bash \
cmake \
curl \
gcc \
git \
libcap-ng-static \
libseccomp-static \
openssl-dev \
openssl-libs-static \
make \
musl-dev \
protoc && \