Created
March 2, 2012 00:34
-
-
Save nbrew/1954291 to your computer and use it in GitHub Desktop.
CVE mentioned in an RPM's change history
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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