Skip to content

Conversation

cyphar
Copy link
Member

@cyphar cyphar commented Sep 30, 2024

This fixes issues we had with spurious MkdirAll failures.

Fixes #4408
Signed-off-by: Aleksa Sarai cyphar@cyphar.com

This fixes issues we had with spurious MkdirAll failures.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
Copy link
Member

@rata rata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! And thanks for having a changelog for this dep, it helps too :)

I guess you verified if this fixes the issue, right?

@cyphar
Copy link
Member Author

cyphar commented Sep 30, 2024

I verified that uid=1234,gid=5678,umask=0 (which is the most extreme example of this problem) doesn't cause errors when using MkdirAll directly.

Copy link
Member

@lifubang lifubang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
If there are some test cases for this issue and for "is the created directory empty" logic check, it will be more better, but I think we can add these tests in a new PR. Thanks.

@lifubang lifubang merged commit c611a21 into opencontainers:main Oct 1, 2024
42 checks passed
@cyphar cyphar deleted the filepath-securejoin-0.3.3 branch October 1, 2024 10:07
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.

mkdirall regression when default ACL is set
3 participants