safe

Password protected secret keeper
git clone git://git.z3bra.org/safe.git
Log | Files | Refs | README | LICENSE

commit 83e2319375810b7b77c167307da011cff8bc0635
parent abd3bdb063e173f695700fed0c8315d530902e9e
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  3 Jun 2019 18:01:49 +0200

Set default umask to 077 to limit socket read/write access

Diffstat:
safe.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/safe.c b/safe.c @@ -420,6 +420,7 @@ main(int argc, char *argv[]) if (sodium_init() < 0) return -1; + umask(077); if (safe) { mkdir(safe, 0700); if (chdir(safe) < 0)