mirror of
https://github.com/dev-sec/linux-baseline
synced 2025-02-17 02:08:23 +00:00
fix regexp to match nx at the beginning and at the end of the flags
This commit is contained in:
parent
2e7dfc229a
commit
9ae49f3b6b
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ describe 'System sysctl' do
|
|||
end
|
||||
|
||||
describe 'ExecShield' do
|
||||
if command('cat /proc/cpuinfo').return_stdout?(/^flags.*?: .*? nx .*?$/)
|
||||
if command('cat /proc/cpuinfo').return_stdout?(/^flags.*?:.*? nx( .*?)?$/)
|
||||
context linux_kernel_parameter('kernel.exec-shield') do
|
||||
its(:value) { should eq 1 }
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue