Skip to content

Commit 61eb450

Browse files
authored
[EBPF] kmt: fix permissions for /go in compiler container (#40316)
### What does this PR do? Fixes the permissions inside of the docker compiler container for KMT. ### Motivation Fix local building in KMT. ### Describe how you validated your changes (if not by through tests) Started the compiler and checked that it can compile tests. I created a ticket to follow up with CI tests https://datadoghq.atlassian.net/browse/EBPF-805 ### Possible Drawbacks / Trade-offs
1 parent c4a924b commit 61eb450

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tasks/kernel_matrix_testing/compiler.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ def start(self) -> None:
218218
user="root",
219219
)
220220

221+
# We need to make the /go directory writable by the compiler user
222+
self.exec("chmod -R a+rw /go", user="root")
223+
221224
cross_arch = ARCH_ARM64 if self.arch == ARCH_AMD64 else ARCH_AMD64
222225
self.exec("chmod a+rx /root", user="root") # Some binaries will be in /root and need to be readable
223226
self.exec(f"dpkg --add-architecture {cross_arch.go_arch}", user="root")

0 commit comments

Comments
 (0)