From: Jens Steube Date: Wed, 18 May 2016 07:56:23 +0000 (+0200) Subject: Use umask(077), mainly to secure hashcat.pot from reading from other users, but shoul... X-Git-Tag: v3.00~174 X-Git-Url: https://www.flypig.org.uk/git/?a=commitdiff_plain;h=f5ee678bbeec0b4565ca23f3998977f5d3edf447;p=hashcat.git Use umask(077), mainly to secure hashcat.pot from reading from other users, but should be a good idea for all files. See https://github.com/hashcat/oclHashcat/issues/331 for details --- diff --git a/src/hashcat.c b/src/hashcat.c index c311e1c..ff33c72 100644 --- a/src/hashcat.c +++ b/src/hashcat.c @@ -5251,6 +5251,8 @@ int main (int argc, char **argv) if (getenv ("POCL_KERNEL_CACHE") == NULL) putenv ((char *) "POCL_KERNEL_CACHE=0"); + umask (077); + /** * Real init */