check-diskfree ignores fs with "media" anywhere in mount path

Bug #1054477 reported by Martin Carpenter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
checksecurity (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

check-diskfree attempts to exlucde external automatically mounted disks by removing mount paths containing "media/" from the output of df(1), like so:

    df -klP |
    grep ^/ |
    grep -v /media/ |
    ...

If you have a standard filesystem mounted at, say, /mnt/media/press (any mount point with media as the non-terminating component), then this will be unintentionally excluded.

Suggested fix:

    42c42
    < grep -v /media/ |
    ---
    > grep -v ^/media/ |

Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Triaged: Report explains what's wrong

Thanks for the report.

Changed in checksecurity (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
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.