Skip to content

Work around tmpfs default permissions regression in runc 1.3.3#1964

Merged
edmorley merged 1 commit intomainfrom
runc-tmpfs-workaround
Nov 14, 2025
Merged

Work around tmpfs default permissions regression in runc 1.3.3#1964
edmorley merged 1 commit intomainfrom
runc-tmpfs-workaround

Conversation

@edmorley
Copy link
Copy Markdown
Member

@edmorley edmorley commented Nov 14, 2025

The Python classic repo's CI just started failing in the container-test job with:
mkdir: cannot create directory '/app/.heroku': Permission denied

eg:
https://github.com/heroku/heroku-buildpack-python/actions/runs/19368179568/job/55418539741

After updating Docker locally, I was able to reproduce the error, and have found it's due to the recent runc 1.3.3 release: https://github.com/opencontainers/runc/releases/tag/v1.3.3

This runc release includes a number of security fixes, one of which has a regression:
opencontainers/runc#4971

There is a fix for this upstream:
opencontainers/runc#4973

...but it's not released yet.

However, we can work around the issue by explicitly setting the previous tmpfs permissions using :mode=1777:
https://docs.docker.com/engine/storage/tmpfs/#options-for---tmpfs

GUS-W-20221627.

The Python classic repo's CI just started failing in the
container-test job with:
`mkdir: cannot create directory '/app/.heroku': Permission denied`

eg:
https://github.com/heroku/heroku-buildpack-python/actions/runs/19368179568/job/55418539741

After updating Docker locally, I was able to reproduce the error, and
have found it's due to the recent runc 1.33 release:
https://github.com/opencontainers/runc/releases/tag/v1.3.3

This runc release includes a number of security fixes - however, one of
which has a regression:
opencontainers/runc#4971

There is a fix for this upstream:
opencontainers/runc#4973

...but it's not released yet.

However, we can work around the issue by explicitly setting the previous
tmpfs permissions using `:mode=1777`:
https://docs.docker.com/engine/storage/tmpfs/#options-for---tmpfs

GUS-W-20221627.
@edmorley edmorley self-assigned this Nov 14, 2025
@edmorley edmorley changed the title Work around tmpfs default permissions regression in runc 1.33 Work around tmpfs default permissions regression in runc 1.3.3 Nov 14, 2025
@edmorley edmorley marked this pull request as ready for review November 14, 2025 16:17
@edmorley edmorley requested a review from a team as a code owner November 14, 2025 16:17
@edmorley edmorley enabled auto-merge (squash) November 14, 2025 16:17
@edmorley edmorley merged commit 9962336 into main Nov 14, 2025
6 of 7 checks passed
@edmorley edmorley deleted the runc-tmpfs-workaround branch November 14, 2025 19:37
@heroku-linguist heroku-linguist bot mentioned this pull request Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants