From: Alexander Popov Date: Wed, 25 Jul 2018 11:33:35 +0000 (+0300) Subject: Support both versions of the STACKPROTECTOR_STRONG option X-Git-Tag: v0.5.2~84 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=dd429b9bcd068e3b049677d020d0dd6f0ca1f5d3;p=kconfig-hardened-check.git Support both versions of the STACKPROTECTOR_STRONG option --- diff --git a/README.md b/README.md index ac72965..fe20cfe 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,7 @@ optional arguments: CONFIG_DEBUG_WX | y | ubuntu18 | self_protection || OK CONFIG_RANDOMIZE_BASE | y | ubuntu18 | self_protection || OK CONFIG_RANDOMIZE_MEMORY | y | ubuntu18 | self_protection || OK - CONFIG_CC_STACKPROTECTOR | y | ubuntu18 | self_protection || OK - CONFIG_CC_STACKPROTECTOR_STRONG | y | ubuntu18 | self_protection || OK + CONFIG_STACKPROTECTOR_STRONG | y | ubuntu18 | self_protection ||CONFIG_CC_STACKPROTECTOR_STRONG: OK ("y") CONFIG_VMAP_STACK | y | ubuntu18 | self_protection || OK CONFIG_THREAD_INFO_IN_TASK | y | ubuntu18 | self_protection || OK CONFIG_SCHED_STACK_END_CHECK | y | ubuntu18 | self_protection || OK diff --git a/kconfig-hardened-check.py b/kconfig-hardened-check.py index e8b846c..7ceb95d 100755 --- a/kconfig-hardened-check.py +++ b/kconfig-hardened-check.py @@ -107,8 +107,8 @@ def construct_opt_checks(): checklist.append(OptCheck('DEBUG_WX', 'y', 'ubuntu18', 'self_protection')) checklist.append(OptCheck('RANDOMIZE_BASE', 'y', 'ubuntu18', 'self_protection')) checklist.append(OptCheck('RANDOMIZE_MEMORY', 'y', 'ubuntu18', 'self_protection')) - checklist.append(OptCheck('CC_STACKPROTECTOR', 'y', 'ubuntu18', 'self_protection')) - checklist.append(OptCheck('CC_STACKPROTECTOR_STRONG','y', 'ubuntu18', 'self_protection')) + checklist.append(OR(OptCheck('STACKPROTECTOR_STRONG','y', 'ubuntu18', 'self_protection'), \ + OptCheck('CC_STACKPROTECTOR_STRONG','y', 'ubuntu18', 'self_protection'))) checklist.append(OptCheck('VMAP_STACK', 'y', 'ubuntu18', 'self_protection')) checklist.append(OptCheck('THREAD_INFO_IN_TASK', 'y', 'ubuntu18', 'self_protection')) checklist.append(OptCheck('SCHED_STACK_END_CHECK', 'y', 'ubuntu18', 'self_protection'))