safe

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

commit e06067da1d8a55e22ecdc8d2d257a92251391336
parent 57acebdf13eb09a21d2fa90faefe844417d94122
Author: Willy Goiffon <dev@z3bra.org>
Date:   Thu,  6 Jun 2019 19:24:46 +0200

Make socket readable by user only

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

diff --git a/safe.c b/safe.c @@ -165,6 +165,7 @@ creatsock(char *sockpath) if (sfd < 0) return -1; + umask(0077); memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; strcpy(addr.sun_path, sockpath);