Skip to content

Commit 085b428

Browse files
committed
Use assignment_regex and bump profile version
1 parent 6563cb3 commit 085b428

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

controls/sysctl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@
354354
desc 'Kernel features and CPU flags provide a protection against buffer overflows. The CPU NX Flag and the kernel parameter exec-shield prevents code execution on a per memory page basis. If the CPU supports the NX-Flag then this should be used instead of the kernel parameter exec-shield.'
355355

356356
# parse for cpu flags
357-
flags = parse_config_file('/proc/cpuinfo', assignment_re: /^([^:]*?)\s+:\s+(.*?)$/).flags
357+
flags = parse_config_file('/proc/cpuinfo', assignment_regex: /^([^:]*?)\s+:\s+(.*?)$/).flags
358358
flags ||= ''
359359
flags = flags.split(' ')
360360

inspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ copyright: DevSec Hardening Framework Team
55
copyright_email: hello@dev-sec.io
66
license: Apache 2 license
77
summary: Test-suite for best-preactice Linux OS hardening
8-
version: 2.1.0
8+
version: 2.1.1
99
supports:
1010
- os-family: linux

0 commit comments

Comments
 (0)