projects
/
kconfig-hardened-check.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4150d10
)
style fix
author
Alexander Popov
<alex.popov@linux.com>
Thu, 3 Oct 2024 08:52:43 +0000
(11:52 +0300)
committer
Alexander Popov
<alex.popov@linux.com>
Thu, 3 Oct 2024 08:52:43 +0000
(11:52 +0300)
kernel_hardening_checker/__init__.py
patch
|
blob
|
history
diff --git
a/kernel_hardening_checker/__init__.py
b/kernel_hardening_checker/__init__.py
index f68bba840484347cf407f170f3f1d645883caa77..740356e0c6adf1acd8da7b09fbba20e17e2a1765 100755
(executable)
--- 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: