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

Do not chmod +r if we don't need to #499

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Conversation

hallyn
Copy link
Contributor

@hallyn hallyn commented Sep 13, 2023

If the inode is a mountpoint, chmod may just fail.

(See project-stacker/stacker#450)

@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2023

Codecov Report

Merging #499 (b73c9b4) into main (fbc1339) will not change coverage.
The diff coverage is 50.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #499   +/-   ##
=======================================
  Coverage   73.48%   73.48%           
=======================================
  Files          60       60           
  Lines        4884     4884           
=======================================
  Hits         3589     3589           
  Misses        935      935           
  Partials      360      360           
Files Changed Coverage Δ
pkg/unpriv/unpriv.go 78.14% <50.00%> (ø)

@cyphar
Copy link
Member

cyphar commented Sep 17, 2023

I've just fixed the CI failure in main -- can you rebase?

If the inode is a mountpoint, chmod may just fail.

(See project-stacker/stacker#450)

Signed-off-by: Serge Hallyn <serge@hallyn.com>
@hallyn
Copy link
Contributor Author

hallyn commented Sep 19, 2023

Thanks, success :)

Copy link
Member

@cyphar cyphar left a comment

Choose a reason for hiding this comment

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

LGTM

@cyphar cyphar merged commit 7dc114a into opencontainers:main Sep 20, 2023
15 checks passed
smoser added a commit to smoser/stacker that referenced this pull request Sep 26, 2023
Serge's change for avoiding chmod +r if not necessary was merged
upstream under opencontainers/umoci#499.
We do not need to use the project-stacker fork any more.

Dropping that and updating to current umoci main looks like this:

   go mod get github.com/opencontainers/umoci@main
   go mod edit -dropreplace github.com/opencontainers/umoci
   go mod tidy

Signed-off-by: Scott Moser <smoser@brickies.net>
smoser added a commit to smoser/stacker that referenced this pull request Sep 26, 2023
Serge's change for avoiding chmod +r if not necessary was merged
upstream under opencontainers/umoci#499.
We do not need to use the project-stacker fork any more.

Dropping that and updating to current umoci main looks like this:

   go mod get github.com/opencontainers/umoci@main
   go mod edit -dropreplace github.com/opencontainers/umoci
   go mod tidy

Signed-off-by: Scott Moser <smoser@brickies.net>
rchincha pushed a commit to project-stacker/stacker that referenced this pull request Sep 27, 2023
Serge's change for avoiding chmod +r if not necessary was merged
upstream under opencontainers/umoci#499.
We do not need to use the project-stacker fork any more.

Dropping that and updating to current umoci main looks like this:

   go mod get github.com/opencontainers/umoci@main
   go mod edit -dropreplace github.com/opencontainers/umoci
   go mod tidy

Signed-off-by: Scott Moser <smoser@brickies.net>
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.

3 participants