From 6c35b832998b807c35eef0ffc1cce93262d5550c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 6 Aug 2009 16:57:39 +0200 Subject: fix vda's breakage: coredumps should be 644, not 600 Signed-off-by: Denys Vlasenko --- src/Hooks/CCpp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Hooks/CCpp.cpp') diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp index b5b576b..e821bb5 100644 --- a/src/Hooks/CCpp.cpp +++ b/src/Hooks/CCpp.cpp @@ -184,7 +184,11 @@ int main(int argc, char** argv) snprintf(path + strlen(path), sizeof(path), "/%s", FILENAME_COREDUMP); int fd; - fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0600); + /* We need coredumps to be readable by all, because + * process producing backtraces is run under the same UID + * as the crashed process. + * Thus 644, not 600 */ + fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); if (fd < 0) { dd.Delete(); -- cgit