Skip to content

Commit

Permalink
Restore correct log path
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marmarek committed May 1, 2024
1 parent ce92bfb commit 6d37768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/qrexec-daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d37768

Please sign in to comment.