diff --git a/kernel_hardening_checker/engine.py b/kernel_hardening_checker/engine.py index ebba3aaf..3de443c6 100755 --- a/kernel_hardening_checker/engine.py +++ b/kernel_hardening_checker/engine.py @@ -294,6 +294,8 @@ def check(self) -> None: else: if opt.result == 'OK': self.result = f'OK: {opt.name} is "{opt.expected}"' + elif opt.result.startswith('OK: in \"'): + self.result = f'OK: "{opt.expected.strip("*")}" is in {opt.name}' elif opt.result == 'OK: is not found': self.result = f'OK: {opt.name} is not found' elif opt.result == 'OK: is present': @@ -330,6 +332,8 @@ def check(self) -> None: else: if opt.result.startswith('FAIL: \"') or opt.result == 'FAIL: is not found': self.result = f'FAIL: {opt.name} is not "{opt.expected}"' + elif opt.result.startswith('FAIL: not in \"'): + self.result = f'FAIL: "{opt.expected.strip("*")}" is not in {opt.name}' elif opt.result == 'FAIL: is not present': self.result = f'FAIL: {opt.name} is not present' elif opt.result in ('FAIL: is off', 'FAIL: is off, "0"', 'FAIL: is off, "is not set"'):