Merge lp:~gothicx/apport/hide_disk_labels into lp:~apport-hackers/apport/trunk
Proposed by
Marco Rodrigues
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~gothicx/apport/hide_disk_labels |
Merge into: | lp:~apport-hackers/apport/trunk |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~gothicx/apport/hide_disk_labels |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pitt (community) | Needs Fixing | ||
Review via email: mp+11392@code.launchpad.net |
To post a comment you must log in.
Marco Rodrigues [2009-09-08 20:30 -0000]: output( ['udevadm' , 'info', '--export-db']) output( ['sh', '-c', 'udevadm info --export-db | grep -vi label'])
> - report['UdevDb'] = command_
> -
> + report['UdevDb'] = command_
> +
I don't particularly like the overhead of calling a subshell, but it's
okay (I guess it won't be much faster to filter in Python).
However, grepping for "label" is both wrong and filters too much. It by-label/ ... lines completely.
will filter out the all the /dev/disks/
Instead, you want to obfuscate them to say e. g.
/dev/ disks/by- label/< hidden>
and you need to obfuscate out these:
E: ID_FS_LABEL=test ENC=test
E: ID_FS_LABEL_
Please don't filter out anything, since that would make it impossible
to see whether udev in fact did detect the label correctly. Please
just rewrite it as
E: ID_FS_LABEL= <hidden>