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

Inconsistent directory permissions for ~/.docker directory #2727

Open
thaJeztah opened this issue Sep 16, 2020 · 3 comments
Open

Inconsistent directory permissions for ~/.docker directory #2727

thaJeztah opened this issue Sep 16, 2020 · 3 comments

Comments

@thaJeztah
Copy link
Member

Opening as a tracking issue, following the discussion on moby/buildkit#1660 (comment), which highlighted that depending on which path in the code is taken, permissions on the ~/.docker may be either 0700 or 0755;

if err := os.MkdirAll(dir, 0700); err != nil {

if err := os.MkdirAll(contextDir, 0755); err != nil {

The second example was added later, so should probably be updated to match the former, although less restrictive permissions would likely not be a problem in most cases as this directory (in the default case) will be inside the user's home directory, which should already be inaccessible for other users.

@thaJeztah
Copy link
Member Author

@chris-crone
Copy link
Member

I don't see a reason for the context store being more permissive than the .docker directory. Maybe @simonferquel had something specific in mind?

@simonferquel
Copy link
Contributor

No specifics in mind. Tls materials dirs was also created with 0700 as well I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants