Skip to content

Set Umask to 0 upon execution#3992

Closed
jakecorrenti wants to merge 2 commits into
opencontainers:mainfrom
jakecorrenti:zero-out-umask
Closed

Set Umask to 0 upon execution#3992
jakecorrenti wants to merge 2 commits into
opencontainers:mainfrom
jakecorrenti:zero-out-umask

Conversation

@jakecorrenti
Copy link
Copy Markdown

Sets the Umask to 0 first thing runc begins execution. If the Umask is not set properly, doTmpfsCopyUp in libcontainer/rootfs_linux.go does not behave as intended.

Fixes: #3991

Sets the Umask to 0 first thing runc begins execution. If the Umask is
not set properly, `doTmpfsCopyUp` in `libcontainer/rootfs_linux.go` does not
behave as intended.

Fixes: opencontainers#3991

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
@jakecorrenti
Copy link
Copy Markdown
Author

cc @giuseppe

@cyphar
Copy link
Copy Markdown
Member

cyphar commented Oct 4, 2023

Tbh I prefer #4039, which I've just merged. Thanks for the patch, though!

@cyphar cyphar closed this Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong directory permissions when using tmpcopyup because of umask

2 participants