summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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',