Skip to content

Commit 6e45ac8

Browse files
committed
landlock: Grant permission for artefact handling
When downloading artefacts from an image using Docker Buildx, slsactl requires write access to ~/.docker/buildx. Without this change the command slsactl download provenance may fail with: failed to run download: open /home/levi/.docker/buildx/.lock: permission denied Signed-off-by: Paulo Gomes <[email protected]>
1 parent 2d93bf8 commit 6e45ac8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/landlock/landlock.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ func EnforceOrDie() {
3838
}
3939

4040
rwDirs := []string{
41-
filepath.Join(home, ".sigstore"), // Sigstore TUF DB.
41+
filepath.Join(home, ".sigstore"), // Sigstore TUF DB.
42+
filepath.Join(home, ".docker", "buildx"), // Image artefacts handling.
4243
}
4344

4445
cwd, err := os.Getwd()

0 commit comments

Comments
 (0)