[libcxx-commits] [libcxx] [libcxx] Add user to linux-builder docker image (PR #228933)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 4 12:19:20 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Aiden Grossman (boomanaiden154)

<details>
<summary>Changes</summary>

Accidentally didn't move this over when copying from the builder-base image in 84812cba90fe0a0f95544a3ff01da1e61346a68d. Without these we run as root by default which results in not throwing permission denied errors when running the test suite.

---
Full diff: https://github.com/llvm/llvm-project/pull/228933.diff


1 Files Affected:

- (modified) libcxx/utils/ci/docker/linux-builder.dockerfile (+7) 


``````````diff
diff --git a/libcxx/utils/ci/docker/linux-builder.dockerfile b/libcxx/utils/ci/docker/linux-builder.dockerfile
index 64dde3cf00f52..9ce4b06ab110c 100644
--- a/libcxx/utils/ci/docker/linux-builder.dockerfile
+++ b/libcxx/utils/ci/docker/linux-builder.dockerfile
@@ -141,3 +141,10 @@ RUN <<EOF
     sudo bash /tmp/install-cmake.sh --prefix=/usr --exclude-subdir --skip-license
     rm /tmp/install-cmake.sh
 EOF
+
+# Setup the user
+RUN useradd gha -u 1001 -m -s /bin/bash
+RUN adduser gha sudo
+RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+WORKDIR /home/gha
+USER gha

``````````

</details>


https://github.com/llvm/llvm-project/pull/228933


More information about the libcxx-commits mailing list