From: Alexander Popov Date: Thu, 3 Oct 2024 08:52:43 +0000 (+0300) Subject: style fix X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=e258772d4c7b7acd0d0b5082744ae1977badc627;p=kconfig-hardened-check.git style fix --- diff --git a/kernel_hardening_checker/__init__.py b/kernel_hardening_checker/__init__.py index f68bba8..740356e 100755 --- a/kernel_hardening_checker/__init__.py +++ b/kernel_hardening_checker/__init__.py @@ -57,9 +57,9 @@ def detect_arch_kconfig(fname: str, supported_archs: List[str]) -> Tuple[StrOrNo def detect_arch_sysctl(fname: str, supported_archs: List[str]) -> Tuple[StrOrNone, str]: arch_mapping = { - 'ARM64': r'^aarch64|armv8', # armv8+ is 64-bit - 'ARM': r'^armv[3-7]', # armv? is 32-bit (below 8) - 'X86_32': r'^i[3-6]?86', # i?86 is 32-bit + 'ARM64': r'^aarch64|armv8', + 'ARM': r'^armv[3-7]', + 'X86_32': r'^i[3-6]?86', 'X86_64': r'^x86_64' } with _open(fname) as f: