summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-check.py')
-rwxr-xr-xkernel-check.py20
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.' %