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 Aug 22, 2024
1 parent 4c1b2a6 commit d0bfc30
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 @@ -83,6 +83,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 d0bfc30

Please sign in to comment.