From 6d37768efc6f35047bb6e680316288a2be8b2406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 1 May 2024 14:14:20 +0200 Subject: [PATCH] Restore correct log path Save the log file in /var/log/qubes, instead of /run/qubes/ (or other chosen socket directory). This partially reverts 2901f00 "Make all paths relative to socket directory" Fixes: 2901f00 "Make all paths relative to socket directory" Fixes QubesOS/qubes-issues#9185 --- daemon/qrexec-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/qrexec-daemon.c b/daemon/qrexec-daemon.c index d86ce173..da1cbe3a 100644 --- a/daemon/qrexec-daemon.c +++ b/daemon/qrexec-daemon.c @@ -341,7 +341,7 @@ static void init(int xid, bool opt_direct) if (!opt_direct) { if ((unsigned)snprintf(qrexec_error_log_name, sizeof(qrexec_error_log_name), - "qrexec.%s.log", remote_domain_name) >= + "/var/log/qubes/qrexec.%s.log", remote_domain_name) >= sizeof(qrexec_error_log_name)) errx(1, "remote domain name too long"); umask(0007); // make the log readable by the "qubes" group