Skip to content

Commit

Permalink
Merge pull request #133 from kdebisschop/AppArmor-bootloader-quoting
Browse files Browse the repository at this point in the history
Fix regex to prevent swallowing closing quote in bootloader config.
  • Loading branch information
uk-bolly authored Jan 26, 2024
2 parents 6884015 + 4830ea2 commit 61dc2e2
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 61dc2e2

Please sign in to comment.