Skip to content

Build out-of-tree kernel modules with kmod kit #1725

Answered by arnaldo2792
arnaldo2792 asked this question in Q&A
Discussion options

You must be logged in to vote

In order to build an out-of-tree kernel module for Bottlerocket, you need to use the kmod kit for the variant version you are using. This is an example of how to build the falco driver using a container (Note: this is an example script and should serve as reference):

FROM rust AS tuftool
RUN cargo install tuftool

FROM fedora:33 AS builder
WORKDIR /tmp
COPY --from=tuftool /usr/local/cargo/bin/tuftool /usr/local/bin/tuftool

# Install dependencies and download sources
RUN \
  ulimit -n 1024; dnf -y install \
  bc bzip2 cmake3 curl diffutils dwarves elfutils-devel \
  findutils gcc gcc-c++ git kmod make tar ncurses-devel \
  patch xz && \
  git clone https://github.com/falcosecurity/falco.g…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arnaldo2792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant