qrexec: use VM name in log filename

This commit is contained in:
Marek Marczykowski-Górecki 2013-10-18 02:27:17 +02:00
parent cf8959dbfe
commit c92bc0a05c

View File

@ -162,7 +162,7 @@ void init(int xid)
} }
close(0); close(0);
snprintf(qrexec_error_log_name, sizeof(qrexec_error_log_name), snprintf(qrexec_error_log_name, sizeof(qrexec_error_log_name),
"/var/log/qubes/qrexec.%d.log", xid); "/var/log/qubes/qrexec.%s.log", remote_domain_name);
umask(0007); // make the log readable by the "qubes" group umask(0007); // make the log readable by the "qubes" group
logfd = logfd =
open(qrexec_error_log_name, O_WRONLY | O_CREAT | O_TRUNC, open(qrexec_error_log_name, O_WRONLY | O_CREAT | O_TRUNC,