Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63182 - glsa-check needs summary of only relevant GLSA Numbers and Descriptions (patch included)
Summary: glsa-check needs summary of only relevant GLSA Numbers and Descriptions (patc...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-09-07 19:03 UTC by Shane Denovan
Modified: 2006-01-17 19:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Provides --needed and -n options as described in the original submission (glsa-check_needed.patch,1.65 KB, patch)
2004-09-07 19:07 UTC, Shane Denovan
Details | Diff
Another possible patch (glsa-check.diff,1.24 KB, patch)
2005-08-27 05:20 UTC, Stefano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Denovan 2004-09-07 19:03:50 UTC
The current (0.4) implementation offers --list and --test to identify relevant GLSAs. --list offers all GLSAs while --test lists only those that affect the current system. Unfortunately --test does not provide the description which makes assessing exposure and severity difficult while --list shows all GLSAs which is useful on its own but adds clutter when searching for only relevant vulnerabilities.

Solutions 
1. glsa-check --list | grep '\[N\]' (not good for new users)
2. The attached patch provides new options, '--needed' and '-n', that show only needed GLSAs and their descriptions.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Shane Denovan 2004-09-07 19:07:59 UTC
Created attachment 39173 [details, diff]
Provides --needed and -n options as described in the original submission

Generated against version 0.4 using 'diff -u'. Please let me know if this is
not the preferred method.

To apply:
cd /usr/bin
patch < glsa-check_needed.patch
Comment 2 Shane Denovan 2004-09-07 22:48:55 UTC
I just wanted to add that I did view bug 45647 but thought there may have been some confusion about problems with existing versus new modes.

Regardless of the implementation details, glsa-check should have a mode to view only relevant vulnerabilities with brief descriptions. This functionality exists in all other similar tools that I am aware of (urpmi, up2date, etc.).

If this enhancement is marked as a duplicate of #45647 or otherwise indicated as invalid, a brief explanation might help to get everyone on the same page.
Comment 3 Stefano 2005-08-27 05:20:50 UTC
Created attachment 66968 [details, diff]
Another possible patch

I attach my own small patch, basically I added a "-u" "--unapplied" switch
which works as --list, but showing only unapplied GLSAs.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2005-11-15 13:27:00 UTC
implemented as a new target "affected" parallel to "new" and "all"
Comment 5 Paul Varner (RETIRED) gentoo-dev 2006-01-17 19:25:45 UTC
Fix is in gentoolkit-0.2.1