Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include UNIX permission bits in checksum computation #24

Open
MShekow opened this issue Nov 29, 2023 · 0 comments
Open

Include UNIX permission bits in checksum computation #24

MShekow opened this issue Nov 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MShekow
Copy link
Owner

MShekow commented Nov 29, 2023

While the caching mechanism of OCI image builders like BuildKit ignore the owner of files, they do account for the UNIX permission bits (r/w/x). Thus, directory-checksum should also account for these bits.

A possible solution is to add the permission bits to the end of the checksum, essentially treating it like being part of the checksum.

Experiments need be done whether this also applies to directories.

@MShekow MShekow added the bug Something isn't working label Nov 29, 2023
@MShekow MShekow self-assigned this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant