summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Tropf <asymmail@googlemail.com>2009-08-26 18:40:32 +0200
committerBjoern Tropf <asymmail@googlemail.com>2009-08-26 18:40:32 +0200
commita0ea1fe01445ada80099f6d84f1b98a31c745787 (patch)
tree2ca812d4b6d295c4ddf9609f23e75ba9fce29f5b
parentOutput changes #1 (diff)
downloadkernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.tar.gz
kernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.tar.bz2
kernel-check-a0ea1fe01445ada80099f6d84f1b98a31c745787.zip
Output changes #2
-rwxr-xr-xkernel-check.py20
-rwxr-xr-xkernellib.py2
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',