-
Notifications
You must be signed in to change notification settings - Fork 711
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11322 from Mab879/fix_ol8_shellcheck
Fix ShellCheck Issues in CPE Checks
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: cpe:/a:runtime-kernel-fips-enabled | ||
title: Running kernel has fips mode enabled | ||
check_id: runtime_kernel_fips_enabled | ||
bash_conditional: '[ $(sysctl -a | grep -c fips_enabled.*1) -eq 1 ]' | ||
bash_conditional: "[ \"$(sysctl -a | grep -c 'fips_enabled.*1')\" -eq 1 ]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: cpe:/a:secure-boot | ||
title: System secure boot is enabled | ||
check_id: secure_boot_enabled | ||
bash_conditional: "[ $(mokutil --sb-state | awk '{print $NF}') == 'enabled' ]" | ||
bash_conditional: "[ \"$(mokutil --sb-state | awk '{print $NF}')\" == 'enabled' ]" | ||
|