Skip to content

Instantly share code, notes, and snippets.

@nbrew
Created March 2, 2012 00:34
Show Gist options
  • Save nbrew/1954291 to your computer and use it in GitHub Desktop.
Save nbrew/1954291 to your computer and use it in GitHub Desktop.
CVE mentioned in an RPM's change history
# CVE should be in the format of CVE-xxxx-xxxx
function verify_cve_applied() {
package=$1
cve=$2
rpm -q --changelog ${package} | grep ${cve}
return $?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment