From f31db9c3fc42f9f535e090258f903f5e3a09e35c Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Wed, 20 Sep 2017 14:40:30 +0300 Subject: [PATCH] Make log file only rw for other users Change-Id: I1147a5d4e9361db4bb64c1ca3f4e9183bc0a225d Signed-off-by: Alexander Aksenov --- helper/dastdout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/dastdout.c b/helper/dastdout.c index 020edee..05fd0ac 100644 --- a/helper/dastdout.c +++ b/helper/dastdout.c @@ -60,7 +60,7 @@ int __redirect_std(void) #endif int ret = 0; - int fd = open(STDOUT, O_WRONLY | O_CREAT | O_TRUNC, 0777); + int fd = open(STDOUT, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd != -1) { if (__redirect(fd, 1) != 0 || __redirect(fd, 2) != 0) { -- 2.7.4