fix + not needing to be escaped in posix regex

This commit is contained in:
Grimmauld 2025-01-31 12:18:38 +01:00
parent ce039756a6
commit a936791cd0
No known key found for this signature in database

View file

@ -5517,7 +5517,7 @@ groups:
test_items: test_items:
- flag: | - flag: |
Chain OUTPUT (policy DROP 0 packets, 0 bytes) Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination pkts bytes targ/etc/groupet prot opt in out source destination
0 0 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0 0 0 ACCEPT all -- * lo 0.0.0.0/0 0.0.0.0/0
remediation: | remediation: |
Run the following commands to implement the loopback rules: Run the following commands to implement the loopback rules:
@ -8268,7 +8268,7 @@ groups:
- id: 6.2.2 - id: 6.2.2
description: 'Ensure no legacy "+" entries exist in /etc/passwd' description: 'Ensure no legacy "+" entries exist in /etc/passwd'
audit: "grep '^\\+:' /etc/passwd" audit: "grep '^+:' /etc/passwd"
tests: tests:
test_items: test_items:
- flag: "" - flag: ""
@ -8281,7 +8281,7 @@ groups:
- id: 6.2.3 - id: 6.2.3
description: 'Ensure no legacy "+" entries exist in /etc/shadow' description: 'Ensure no legacy "+" entries exist in /etc/shadow'
audit: "grep '^\\+:' /etc/shadow" audit: "grep '^+:' /etc/shadow"
tests: tests:
test_items: test_items:
- flag: "" - flag: ""
@ -8294,7 +8294,7 @@ groups:
- id: 6.2.4 - id: 6.2.4
description: 'Ensure no legacy "+" entries exist in /etc/group' description: 'Ensure no legacy "+" entries exist in /etc/group'
audit: "grep '^\\+:' /etc/group" audit: "grep '^+:' /etc/group"
tests: tests:
test_items: test_items:
- flag: "" - flag: ""