diff options
author | Bjoern Tropf <asymmail@googlemail.com> | 2009-08-26 18:40:32 +0200 |
---|---|---|
committer | Bjoern Tropf <asymmail@googlemail.com> | 2009-08-26 18:40:32 +0200 |
commit | a0ea1fe01445ada80099f6d84f1b98a31c745787 (patch) | |
tree | 2ca812d4b6d295c4ddf9609f23e75ba9fce29f5b /kernel-check.py | |
parent | Output changes #1 (diff) | |
download | kernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.tar.gz kernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.tar.bz2 kernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.zip |
Output changes #2
Diffstat (limited to 'kernel-check.py')
-rwxr-xr-x | kernel-check.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kernel-check.py b/kernel-check.py index 1038b35..0936c6c 100755 --- a/kernel-check.py +++ b/kernel-check.py @@ -61,16 +61,6 @@ def main(argv): (kernel.version, kernel.revision)))) info('Kernel source : %s' % color('GOOD', kernel.source)) - supported = list() - for item in lib.SUPPORTED: - best = (lib.all_version(item)) - if best and best is not None: - for i in best: - if item == 'gentoo': - i.genpatch = lib.get_genpatch(lib.read_genpatch_file( - lib.DIR['out']), i) - supported.append(i) - kernel.genpatch = lib.get_genpatch(lib.read_genpatch_file(lib.DIR['out']), kernel) @@ -89,6 +79,16 @@ def main(argv): print '\n>>> Reading all kernel vulnerabilities' + supported = list() + for item in lib.SUPPORTED: + best = (lib.all_version(item)) + if best and best is not None: + for i in best: + if item == 'gentoo': + i.genpatch = lib.get_genpatch(lib.read_genpatch_file( + lib.DIR['out']), i) + supported.append(i) + kernel_eval = lib.eval_cve_files(lib.DIR['out'], kernel, arch) info('%s vulnerabilities read.' % |