Skip to content

Commit

Permalink
modify audit for check 1.1.8 (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
y4ney authored Aug 22, 2023
1 parent e377cfe commit aede567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cfg/cis-1.3.1/definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ groups:
- id: 1.1.8
description: "Ensure auditing is configured for Docker files and directories - containerd.sock (Automated)"
audit: |
test_file=$(grep 'containerd.sock' /etc/containerd/config.toml | awk -F "=" '{print $2}')
if test -f "$test_file"; then
test_file=$(grep 'containerd.sock' /etc/containerd/config.toml | awk -F "\"" '{print $2}')
if test -S "$test_file"; then
auditctl -l | grep $test_file
fi
tests:
Expand Down

0 comments on commit aede567

Please sign in to comment.