From a0ea1fe01445ada80099f6d84f1b98a31c745787 Mon Sep 17 00:00:00 2001 From: Bjoern Tropf Date: Wed, 26 Aug 2009 18:40:32 +0200 Subject: Output changes #2 --- kernel-check.py | 20 ++++++++++---------- kernellib.py | 2 +- 2 files changed, 11 insertions(+), 11 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.' % diff --git a/kernellib.py b/kernellib.py index bbe8acb..ebb6c9c 100755 --- a/kernellib.py +++ b/kernellib.py @@ -46,7 +46,7 @@ REGEX = { 'r_kernel' : re.compile(r'^r\d{1,3}$') } -SUPPORTED = ['gentoo', 'git', 'hardened'] +SUPPORTED = ['gentoo', 'vanilla', 'hardened'] KERNEL_TYPES = [ 'aa', 'acpi', 'ac', 'alpha', 'arm', 'as', 'cell', 'ck', 'compaq', 'crypto', -- cgit v1.2.3-65-gdbad