Make log file only rw for other users 13/151713/2
authorAlexander Aksenov <a.aksenov@samsung.com>
Wed, 20 Sep 2017 11:40:30 +0000 (14:40 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Fri, 22 Sep 2017 10:07:44 +0000 (13:07 +0300)
Change-Id: I1147a5d4e9361db4bb64c1ca3f4e9183bc0a225d
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
helper/dastdout.c

index 020edee..05fd0ac 100644 (file)
@@ -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) {