forked from mirrors/linux-bench
fix check 3.2.1.c
Its was I Yoav Rotem :) fix that won't except comments (start with#) and eq flag instead of string compare in flag: "..... = 0"
This commit is contained in:
parent
61e54c1bf7
commit
f29b768dfc
1 changed files with 5 additions and 2 deletions
|
@ -4313,10 +4313,13 @@ groups:
|
||||||
|
|
||||||
- id: 3.2.1.c
|
- id: 3.2.1.c
|
||||||
description: "Ensure source routed packets are not accepted"
|
description: "Ensure source routed packets are not accepted"
|
||||||
audit: "grep net.ipv4.conf.all.accept_source_route /etc/sysctl.conf /etc/sysctl.d/*"
|
audit: "grep ^[^#]net.ipv4.conf.all.accept_source_route /etc/sysctl.conf /etc/sysctl.d/*"
|
||||||
tests:
|
tests:
|
||||||
test_items:
|
test_items:
|
||||||
- flag: "net.ipv4.conf.all.accept_source_route = 0"
|
- flag: "net.ipv4.conf.all.accept_source_route"
|
||||||
|
compare:
|
||||||
|
op: eq
|
||||||
|
value: "0"
|
||||||
set: true
|
set: true
|
||||||
remediation: |
|
remediation: |
|
||||||
Set the following parameters in `/etc/sysctl.conf` or a `/etc/sysctl.d/*` file:
|
Set the following parameters in `/etc/sysctl.conf` or a `/etc/sysctl.d/*` file:
|
||||||
|
|
Loading…
Add table
Reference in a new issue