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

blob/fileblob: Make it possible to set the permissions used in CreateDir #3423

Closed
stanhu opened this issue Apr 23, 2024 · 0 comments · Fixed by #3426
Closed

blob/fileblob: Make it possible to set the permissions used in CreateDir #3423

stanhu opened this issue Apr 23, 2024 · 0 comments · Fixed by #3426

Comments

@stanhu
Copy link
Contributor

stanhu commented Apr 23, 2024

Is your feature request related to a problem? Please describe.

Currently fileblob sets the permissions to 0777:

err = os.MkdirAll(absdir, os.FileMode(0777))

We use fileblob to store backups, and we'd prefer this not be world-readable. We'd like to lock this down and use perm.PrivateDir or 0700. It'd be nice to make that the default or make it configurable.

For now, we'll just use os.MkdirAll ourselves.

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 a pull request may close this issue.

1 participant