Log calls made from dom0 to the journal#232
Conversation
| src_domain_for_log = "dom0"; | ||
| else | ||
| src_domain_for_log = src_domain_name; | ||
| sd_journal_send("MESSAGE=qrexec: %s: %s -> %s", remote_cmdline, src_domain_for_log, domname, |
There was a problem hiding this comment.
The format differs from qrexec.parser qubes-qrexec-policy-daemon.
- It uses
service+arg: src -> dest - Here we use
src -> dest: remote_cmdline
Because I the cmdline may be long, I think it's best if it's at the end. But I understand this causes a bit of inconsistency when reading and comparing against other formats.
|
PipelineRetryFailed |
1 similar comment
|
PipelineRetryFailed |
|
Strange, the tests and build have |
|
https://gitlab.com/QubesOS/qubes-core-qrexec/-/jobs/14597578686 I see it now, package is not really being installed. Cancelled ^^^ |
|
PipelineRetryFailed |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #232 +/- ##
==========================================
- Coverage 80.98% 80.96% -0.03%
==========================================
Files 58 58
Lines 10815 10833 +18
==========================================
+ Hits 8759 8771 +12
- Misses 2056 2062 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
libsystemd is a huge library (and also pulling in other heavy dependencies, like whole openssl), I don't want this in a program that's supposed to start fast. If anything, you can use |
Before I attempt to move to syslog, can we have a debug build available from the repos, already compiled, that include this change? Because the current process is: I can also enable conditionally the logging only if a certain file exists, such as So, would you accept:
|
|
No, I won't accept qrexec-client linked with libsystemd. It doesn't matter if function is used or not by default - linking is not conditional. But, enabling logging based on presence of some debug flag file sounds okay. Looks like it could be simply |
Follow dom0 calls:
sudo journalctl -f SYSLOG_IDENTIFER=qrexec-client
There was a problem hiding this comment.
I don't like this change, when user calls the script directly on their own system, it should at least ask for confirmation.
The failure you got in CI was because you forgot to add the package to CI config (.gitlab-ci.yml).
|
PipelineRetryFailed |
Follow dom0 calls: