aboutsummaryrefslogtreecommitdiffstats
path: root/syz-cluster/workflow/triage-step/Dockerfile
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-11-11 11:02:25 +0100
committerAleksandr Nogikh <nogikh@google.com>2025-11-12 11:59:23 +0000
commit07e030dea6e6d9ca88b75bb3be2810f47083b328 (patch)
tree9eea9ff7c38833f485c09ed036e2e728f9943922 /syz-cluster/workflow/triage-step/Dockerfile
parenta62b5b4d57938156b12b55dbb2a71354cc93a932 (diff)
syz-cluster: simplify shared git repo mounting code
Instead of a complicated overlayfs setup, do a lightweight git clone in a way that the cloned local copy keeps on referencing the git object storage on the NFS. It's simpler code-wise and hopefully will be less susceptible to failures when local git operations coincide with a git fetch on the shared repository.
Diffstat (limited to 'syz-cluster/workflow/triage-step/Dockerfile')
-rw-r--r--syz-cluster/workflow/triage-step/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/syz-cluster/workflow/triage-step/Dockerfile b/syz-cluster/workflow/triage-step/Dockerfile
index d5c4bf254..67110b863 100644
--- a/syz-cluster/workflow/triage-step/Dockerfile
+++ b/syz-cluster/workflow/triage-step/Dockerfile
@@ -26,7 +26,10 @@ RUN apt-get update && \
apt-get install -y git
# pkg/osutil uses syzkaller user for sandboxing.
-RUN useradd --create-home syzkaller
+RUN useradd -u 10000 --create-home syzkaller
+# Prevent "fatal: detected dubious ownership in repository" errors.
+RUN git config --system --add safe.directory /workdir
+RUN git config --system --add safe.directory /kernel-repo
COPY --from=triage-step-builder /build/triage-step-bin /bin/triage-step