Permalink
Browse files

Changed the umask to 077 so that the keys file is not readable/writab…

…le by other users.
  • Loading branch information...
arza-zara committed Sep 19, 2016
1 parent 3df2142 commit d28f94a2f9d7ddba2bc439ce7cc3160305cedb82
Showing with 1 addition and 2 deletions.
  1. +1 −2 other/bootstrap_daemon/src/tox-bootstrapd.c
@@ -157,8 +157,6 @@ void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
exit(1);
}
- // Change the file mode mask
- umask(0);
// Change the current working directory
if ((chdir("/")) < 0) {
@@ -176,6 +174,7 @@ void daemonize(LOG_BACKEND log_backend, char *pid_file_path)
int main(int argc, char *argv[])
{
+ umask(077);
char *cfg_file_path;
LOG_BACKEND log_backend;
bool run_in_foreground;

0 comments on commit d28f94a

Please sign in to comment.