Skip to content

helper for ensuring file permissions are restrictive #19

@shoenig

Description

@shoenig

Want an easy way of asserting that a given filepath is a file with restricted permissions, i.e. 0400 or 0600. (Implicitly ensuring the file belongs to the application's unix process).

e.g.

filesafe.ReadOnly("/etc/application/config.toml")
filesafe.ReadWrite("/var/databases/application.db")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions