Skip to content

Commit

Permalink
Add keylime agent (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Itxaka authored Oct 24, 2024
1 parent 947802f commit bd6639d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions packages/utils/keylime-agent/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
image: ubuntu:24.04
package_dir: /package

env:
- PACKAGE_VERSION={{ .Values.version }}
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
- GITHUB_REPO={{ ( index .Values.labels "github.repo" ) }}

prelude:
- apt-get update && apt-get install -y git libclang-dev libssl-dev libtss2-dev libzmq3-dev pkg-config cargo make
- PACKAGE_VERSION=v${PACKAGE_VERSION%\+*} && git clone --depth=1 --branch ${PACKAGE_VERSION} https://github.com/${GITHUB_ORG}/${GITHUB_REPO}

steps:
# build
- cd ${GITHUB_REPO} && RELEASE=1 TARGETDIR=/build make all
# create target dirs for package
- mkdir -p /package/usr/local/bin/
- mkdir -p /package/etc/keylime/
- mkdir -p /package/etc/systemd/system/
- mkdir -p /package/usr/libexec/keylime/
# Copy binaries
- cp /build/release/keylime_agent /package/usr/local/bin/
- cp /build/release/keylime_ima_emulator /package/usr/local/bin/
# copy default config
- cp ${GITHUB_REPO}/keylime-agent.conf /package/etc/keylime/
# copy systemd services
- cp ${GITHUB_REPO}/dist/systemd/system/keylime_agent.service /package/etc/systemd/system/
- cp ${GITHUB_REPO}/dist/systemd/system/var-lib-keylime-secure.mount /package/etc/systemd/system/
# Some kind of needed shim for a bug
# Remove when https://github.com/keylime/rust-keylime/issues/325 is fixed
- cp ${GITHUB_REPO}/keylime-agent/tests/actions/shim.py /package/usr/libexec/keylime/
6 changes: 6 additions & 0 deletions packages/utils/keylime-agent/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "keylime-agent"
category: "utils"
version: "0.2.6"
labels:
github.repo: "rust-keylime"
github.owner: "keylime"

0 comments on commit bd6639d

Please sign in to comment.