From 9624d92a65520b982f107ede35c085f9daee5fda Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 27 Jul 2021 12:04:52 +0200 Subject: secmod: use umask, as fchmod is undefined on sockets --- src/util/taler-exchange-secmod-rsa.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util/taler-exchange-secmod-rsa.c') diff --git a/src/util/taler-exchange-secmod-rsa.c b/src/util/taler-exchange-secmod-rsa.c index b6729b66b..3c1f81c26 100644 --- a/src/util/taler-exchange-secmod-rsa.c +++ b/src/util/taler-exchange-secmod-rsa.c @@ -2031,7 +2031,9 @@ main (int argc, }; int ret; + /* Restrict permissions for the key files that we create. */ (void) umask (S_IWGRP | S_IROTH | S_IWOTH | S_IXOTH); + /* force linker to link against libtalerutil; if we do not do this, the linker may "optimize" libtalerutil away and skip #TALER_OS_init(), which we do need */ -- cgit v1.2.3