[Pkg-voip-commits] [tox] 03/11: Changed the umask to 077 so that the keys file is not readable/writable by other users.

felix salfelder felix-guest at moszumanska.debian.org
Wed Sep 28 21:55:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository tox.

commit d28f94a2f9d7ddba2bc439ce7cc3160305cedb82
Author: arza <arza at arza.us>
Date:   Mon Sep 19 05:03:48 2016 +0300

    Changed the umask to 077 so that the keys file is not readable/writable by other users.
---
 other/bootstrap_daemon/src/tox-bootstrapd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c
index 86bf1dd..686b968 100644
--- a/other/bootstrap_daemon/src/tox-bootstrapd.c
+++ b/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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/tox.git




More information about the Pkg-voip-commits mailing list