apport should filter username/homedir from JournalErrors.txt

Bug #1505852 reported by Steve Beattie
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Medium
Unassigned

Bug Description

apport in Ubuntu 15.04 and 15.10 includes in bug reports a file JournalErrors.txt that is the recorded output of the command 'journalctl -b --priority warning'. Apport also makes a best effort attempt to filter out information that bug reporters would like to keep private, like hostnames and usernames. However, the OneConf service is reporting log entries to syslog/journald that look like:

  Out 13 08:01:51 hostname com.ubuntu.OneConf[1120]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/USERNAME/.cache/oneconf/7ae519bec912345a6925fb2d5448031b/other_hosts'

... only with the actual home directory (and by extension username) included in the path. Note that the hostname is correctly being filtered (and replaced with 'hostname'), so some filtering is being applied to this log file.

Revision history for this message
Brian Murray (brian-murray) wrote :

This worked for me on Wily.

 Oct 12 12:53:45 hostname com.ubuntu.OneConf[3013]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/username/.cache/oneconf/fb53b24d0f88db9248433fd15318cc65/other_hosts'
 ...
 Oct 12 13:20:40 hostname com.ubuntu.OneConf[3013]: WARNING:oneconf.hosts:Error in loading other_hosts file: [Errno 2] No such file or directory: '/home/username/.cache/oneconf/fb53b24d0f88db9248433fd15318cc65/other_hosts'

I have the following version of apport installed: 2.19.1-0ubuntu2.

Revision history for this message
Steve Beattie (sbeattie) wrote :

Brian, I've subscribed you to LP: #1505626 which has an example of this. Perhaps it affects vivid only?

Revision history for this message
Steve Beattie (sbeattie) wrote :

Brian, I've also subscribed you to LP: #1504864, in which the JournalErrors.txt contains some unfiltered zeitgeist entries as well as an email address.

Revision history for this message
Brian Murray (brian-murray) wrote :

No, I've found some Wily ones too. Searching my local cache of attachments it does seem to occur rather regularly.

bdmurray@bizarro:/mnt/unmirrored/bug-attachments$ cat anonymized.txt | sort | uniq | wc -l
143
bdmurray@bizarro:/mnt/unmirrored/bug-attachments$ cat not-anonymized.txt | sort | uniq | wc -l
98

Changed in apport (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Brian Murray (brian-murray) wrote :

The two sample bug reports are both about package installation failures, but the problem is not limited to those.

tags: added: anonymize vivid wily
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.