File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 414414 desc 'Protects against common exploits in regards to links, fifos and regular files created or controlled by attackers'
415415 only_if { !container_execution }
416416 describe kernel_parameter ( 'fs.protected_fifos' ) do
417- its ( :value ) { should match cmp ( /(1|2)/ ) }
417+ its ( :value ) { should eq ( 1 ) . or eq ( 2 ) . or eq ( nil ) } # include nil because RHEL7 does not have this parameter
418418 end
419419 describe kernel_parameter ( 'fs.protected_hardlinks' ) do
420420 its ( :value ) { should eq 1 }
421421 end
422422 describe kernel_parameter ( 'fs.protected_regular' ) do
423- its ( :value ) { should eq 2 }
423+ its ( :value ) { should eq ( 2 ) . or eq ( nil ) } # include nil because RHEL7 does not have this parameter
424424 end
425425 describe kernel_parameter ( 'fs.protected_symlinks' ) do
426426 its ( :value ) { should eq 1 }
You can’t perform that action at this time.
0 commit comments