This repository was archived by the owner on Jun 6, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1105,16 +1105,16 @@ queries:
11051105 impact : 80
11061106 mql : |
11071107 if( file("/boot/grub2/grub.cfg" ).exists) {
1108- file("/boot/grub2/grub.cfg").content.lines.where( _ == /^[^#]/ ).contains(" audit\ =(\s+)?1" )
1108+ file("/boot/grub2/grub.cfg").content.lines.where( _ == /^[^#]/ ).any(_ == / audit(\s+)?\ =(\s+)?1/ )
11091109 }
11101110 if( file("/boot/grub/grub.cfg").exists ) {
1111- file("/boot/grub/grub.cfg").content.lines.where( _ == /^[^#]/ ).contains(" audit\ =(\s+)?1" )
1111+ file("/boot/grub/grub.cfg").content.lines.where( _ == /^[^#]/ ).any(_ == / audit(\s+)?\ =(\s+)?1/ )
11121112 }
11131113 if( file("/boot/grub/grub.conf").exists ) {
1114- file("/boot/grub/grub.conf").content.lines.where( _ == /^[^#]/ ).contains(" audit\ =(\s+)?1" )
1114+ file("/boot/grub/grub.conf").content.lines.where( _ == /^[^#]/ ).any(_ == / audit(\s+)?\ =(\s+)?1/ )
11151115 }
11161116 if( file('/etc/secboot/config.json').exists ) {
1117- parse.json('/etc/secboot/config.json').params['kernel-params'].contains(' audit\ =(\s+)?1')
1117+ parse.json('/etc/secboot/config.json').params['kernel-params'] == / audit(\s+)?\ =(\s+)?1/
11181118 }
11191119 docs :
11201120 desc : |-
You can’t perform that action at this time.
0 commit comments