]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Make _PATH_CONNERRS world readable (#194)
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 31 Dec 2020 04:49:09 +0000 (05:49 +0100)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 04:49:09 +0000 (15:49 +1100)
From https://bugs.debian.org/341853

There is nothing security-sensitive there.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Co-authored-by: Marco d'Itri <md@linux.it>
pppd/main.c

index aaaa5c8f8f7bcb8ba91733c2eb35ed7c97a66230..87a5d29217bb48103440c3af6e467f75854e49dd 100644 (file)
@@ -1642,7 +1642,7 @@ device_script(char *program, int in, int out, int dont_wait)
     if (log_to_fd >= 0)
        errfd = log_to_fd;
     else
-       errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0600);
+       errfd = open(_PATH_CONNERRS, O_WRONLY | O_APPEND | O_CREAT, 0644);
 
     ++conn_running;
     pid = safe_fork(in, out, errfd);