]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
actions/config: ensure config file is created with mode 0644 (#152)
authorebiggers <ebiggers@google.com>
Thu, 24 Oct 2019 05:18:45 +0000 (22:18 -0700)
committerJoseph Richey <joerichey@google.com>
Thu, 24 Oct 2019 05:18:45 +0000 (22:18 -0700)
commita5b805f03d5add8a1750f564bebf9f6eac035ec1
tree45780fcfdb3a1dbff47fd0f648bc2f8277aaf306
parentf819c93ef40851ddad0470a711c673c643e73ca6
actions/config: ensure config file is created with mode 0644 (#152)

If the user has set a restrictive umask, e.g. 0077, then
/etc/fscrypt.conf would be created without the world-readable bit set.
Fix it by overriding the umask when creating the file.

Resolves https://github.com/google/fscrypt/issues/151
actions/config.go
actions/config_test.go [new file with mode: 0644]
filesystem/path.go