Skip to content

Commit

Permalink
Dockerfile: ensure this option is not set
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Ostarek <[email protected]>
  • Loading branch information
christoph-zededa authored and rouming committed Jun 25, 2024
1 parent d8ef6c6 commit 08e4fdb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.gcc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ ENV KCONFIG_NOTIMESTAMP="true"
ENV KBUILD_BUILD_TIMESTAMP="${KBUILD_BUILD_TIMESTAMP}"
ENV SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH}"

# ensure CONFIG_BPF_KPROBE_OVERRIDE is not set
RUN ! grep -q -E 'CONFIG_BPF_KPROBE_OVERRIDE=[y|m]' .config || (echo "Cannot set this option for security reasons"; false)

RUN --mount=type=cache,target=/root/.cache/ccache,id=kernel-ccache-${TARGETARCH} \
ccache -z && \
echo "Building kernel for ${TARGETARCH} with ARCH=${ARCH} and CROSS_COMPILE=${CROSS_COMPILE}" && \
Expand Down

0 comments on commit 08e4fdb

Please sign in to comment.