From 52ddf9ca4fcb0367b385ea458e00a277973e68ca Mon Sep 17 00:00:00 2001 From: Daniel Krebs Date: Fri, 19 Feb 2016 22:36:50 +0100 Subject: [PATCH] tools/proxy: add mandatory mode for open() when used with O_CREAT or O_TMPFILE Signed-off-by: Stefan Lankes --- hermit/tools/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hermit/tools/proxy.c b/hermit/tools/proxy.c index 772eb49e4..04ee594ad 100644 --- a/hermit/tools/proxy.c +++ b/hermit/tools/proxy.c @@ -86,7 +86,7 @@ static int init_env(void) // register function to delete temporary files atexit(fini_env); - fd = open(fname, O_CREAT|O_RDWR); + fd = open(fname, O_CREAT|O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); if (fd < 0) { perror("open"); exit(1);