Skip to content

Respect UMASK environment variable #1550

@AidanDelaney

Description

@AidanDelaney

Summary

There are use-cases where the running application needs to inherit a specific umask from the launcher. These include cases where the application writes to some kind of network attached storage. launcher does not currently set the umask.


Proposal

Launcher should read the UMASK environment variable and enforce this umask. The umask should have no impact on Windows. If an invalid UMASK is passed, e.g. UMASK=foo, then an error should be returned.

The setting of umask should be late in the launcher process, after exec.d binaries have executed and the launch environment is configured.


Related

There is no RFC for this request.

RFC #___


Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions