wolfi-baselayout: set /var/tmp permissions to 1777#78636
Closed
toabctl wants to merge 1 commit intowolfi-dev:mainfrom
Closed
wolfi-baselayout: set /var/tmp permissions to 1777#78636toabctl wants to merge 1 commit intowolfi-dev:mainfrom
toabctl wants to merge 1 commit intowolfi-dev:mainfrom
Conversation
f9b0b88 to
7975449
Compare
/var/tmp was being created via mkdir -p with default 0755 permissions. Every major distro (Alpine, Ubuntu, Debian, Fedora, Arch) sets /var/tmp to 1777 (drwxrwxrwt), same as /tmp, since it is a shared temporary directory that any user should be able to write to. This was already fixed for /tmp in 0744eb9 but /var/tmp was missed. The incorrect permissions caused failures in images like selenium-standalone-chromium where Xvfb uses -fbdir /var/tmp and the non-root seluser could not write to it. Fixes: chainguard-dev/customer-issues#3131
7975449 to
1f916b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/var/tmpwas being created viamkdir -pwith default0755permissions, but every major distro (Alpine, Ubuntu, Debian, Fedora, Arch) sets it to1777(drwxrwxrwt), same as/tmp./tmpin 0744eb9 but/var/tmpwas missed.selenium-standalone-chromiumwhere Xvfb uses-fbdir /var/tmpand the non-rootselusercould not write to it, resulting in a cascade of failures (Xvfb → VNC → ChromeDriver → SeleniumGuardedRunnableexception).Test plan
/var/tmphas1777permissions in a rebuilt imageselenium-standalone-chromiumstarts without theGuardedRunnableerrorFixes: https://github.com/chainguard-dev/customer-issues/issues/3131
🤖 Generated with Claude Code