Skip to content

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

@stanhu

Description

@stanhu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions