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

archive: remove umask, replace with explicit chmod after create #1629

Merged
merged 1 commit into from
Oct 12, 2017

Conversation

dmcgowan
Copy link
Member

Call chmod on all open files and created directories to ensure permission is set as expected without changing umask.

Fixes #1608

Call chmod on all open files and created directories to
ensure permission is set as expected without changing umask.

Fixes containerd#1608

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
@stevvooe stevvooe added this to the 1.0.0 milestone Oct 11, 2017
@codecov-io
Copy link

Codecov Report

Merging #1629 into master will decrease coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1629     +/-   ##
=========================================
- Coverage   48.87%   48.67%   -0.2%     
=========================================
  Files          27       27             
  Lines        4074     4074             
=========================================
- Hits         1991     1983      -8     
- Misses       1668     1672      +4     
- Partials      415      419      +4
Impacted Files Coverage Δ
metadata/db.go 64.43% <0%> (-1.55%) ⬇️
metadata/snapshot.go 49.34% <0%> (-0.94%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 587f252...e20b371. Read the comment docs.

@crosbymichael
Copy link
Member

LGTM

1 similar comment
@tonistiigi
Copy link
Member

LGTM

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

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

LGTM

@estesp estesp merged commit 71c4ee5 into containerd:master Oct 12, 2017
}
// Only final created directory gets explicit permission
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment only makes sense if we were using os.MkdirAll, doesn't it?

@dmcgowan dmcgowan deleted the remove-archive-umask branch June 5, 2018 18:20
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.

7 participants