diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-20 12:44:01 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-20 12:44:01 -0500 |
| commit | a3a87dae939889cae34c4babeb7f7b42bc08aab3 (patch) | |
| tree | 8c9ef1c82bc3bad726e33b1b58996bdfdc44c4ea /assets/outbox/website-project-packages.txt | |
| parent | 0b931368defa1c3a25756621ba9a77e9e2ed4248 (diff) | |
| download | archsetup-a3a87dae939889cae34c4babeb7f7b42bc08aab3.tar.gz archsetup-a3a87dae939889cae34c4babeb7f7b42bc08aab3.zip | |
fix(security): decrypt the cmail password under a tight umask
gpg writes its output at the process umask (often 0644), so the plaintext mail password was world-readable between the decrypt and the chmod. I extracted decrypt_to_secure, which runs the decrypt in a 0077 umask subshell so the file is 0600 from creation. A fake-gpg test pins that the write runs under the tight umask.
Diffstat (limited to 'assets/outbox/website-project-packages.txt')
0 files changed, 0 insertions, 0 deletions
