Bug 1819313
| Summary: | [DOC] journalctl --no-hostname option leaks hostname | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Steve <y9t7sypezp> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 32 | CC: | lnykryn, msekleta, s, systemd-maint, zbyszek |
| Target Milestone: | --- | Keywords: | Documentation |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | systemd-245.6-2.fc32 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-06-05 02:29:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Steve
2020-03-31 16:42:18 UTC
There is a complication when the hostname changes: $ journalctl -b -31 --no-hostname -q --full --no-pager -g 'hostname changed' Mar 27 12:08:13 NetworkManager[705]: <info> [1585336093.8611] hostname: hostname changed from (none) to "f31-f32-test" Mar 27 12:12:37 NetworkManager[705]: <info> [1585336357.4614] hostname: hostname changed from "f31-f32-test" to "f32-test" That leaks both the old hostname and the new hostname. I'm changing this to a documentation bug ... For kernel bugs, the "-k" option is always specified, in which case, the NetworkManager records are not in the output: $ journalctl -b -31 -k --no-hostname -q --full --no-pager -g 'hostname changed' $ So we are left with two records from systemd: $ journalctl -b -31 -k --no-hostname -q --full --no-pager -g 'f32-test' Mar 27 12:08:03 systemd[1]: Set hostname to <f31-f32-test>. Mar 27 12:08:08 systemd[1]: Set hostname to <f31-f32-test>. > If the "--no-hostname" option is intended to protect confidential information in a user's hostname
No, not at all. The option simply removes the "column" with the hostname. It is intended
to save space. No effort whatsoever is made to remove the hostname or other information
from the log contents.
I'll add a note to the docs.
(In reply to Zbigniew Jędrzejewski-Szmek from comment #4) > https://github.com/systemd/systemd/pull/15290 Thanks. However: occurences -> occurrences FEDORA-2020-dd43dd05b1 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1 FEDORA-2020-dd43dd05b1 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-dd43dd05b1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-dd43dd05b1 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1 FEDORA-2020-dd43dd05b1 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-dd43dd05b1` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-dd43dd05b1 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2020-dd43dd05b1 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |