From 117b498f0bf81cee234f46f29cbf39f040726635 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Sun, 19 Jun 2022 11:24:11 +0200 Subject: [PATCH] Change default umask from 0777 to 0027 New files are accessible by user. Fixes: #17269 --- system/lib/libc/emscripten_syscall_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/lib/libc/emscripten_syscall_stubs.c b/system/lib/libc/emscripten_syscall_stubs.c index 2a6d5d5267ec..6c65d9344b4f 100644 --- a/system/lib/libc/emscripten_syscall_stubs.c +++ b/system/lib/libc/emscripten_syscall_stubs.c @@ -28,7 +28,7 @@ static int g_pid = 42; static int g_pgid = 42; static int g_ppid = 1; static int g_sid = 42; -static mode_t g_umask = S_IRWXU | S_IRWXG | S_IRWXO; +static mode_t g_umask = 0 | S_IWGRP | S_IRWXO; #ifdef NDEBUG #define REPORT(name)