Skip to content

Commit

Permalink
Fix regex to prevent swallowing closing quote in bootloader config. F…
Browse files Browse the repository at this point in the history
…ixes #132

Signed-off-by: Karl DeBisschop <[email protected]>
  • Loading branch information
kdebisschop committed Jan 14, 2024
1 parent de94cba commit 4830ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/section_1/cis_1.6.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
regexp: "{{ item.regexp }}"
replace: "{{ item.replace }}"
with_items:
- { regexp: 'apparmor=\S+', replace: 'apparmor=1' }
- { regexp: 'security=\S+', replace: 'security=apparmor' }
- { regexp: 'apparmor=[^\s"]+', replace: 'apparmor=1' }
- { regexp: 'security=[^\s"]+', replace: 'security=apparmor' }
when:
- "'apparmor' in ubtu20cis_1_6_1_2_cmdline_settings.stdout"
- "'security' in ubtu20cis_1_6_1_2_cmdline_settings.stdout"
Expand Down

0 comments on commit 4830ea2

Please sign in to comment.