Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test 1.1.8 produce false positive #118

Closed
cesan3 opened this issue Oct 7, 2023 · 3 comments
Closed

Test 1.1.8 produce false positive #118

cesan3 opened this issue Oct 7, 2023 · 3 comments

Comments

@cesan3
Copy link

cesan3 commented Oct 7, 2023

The current cis-1.3.1 audit is giving me a false positive with docker-ce-20.10.21-3. This check 1.1.8:

      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

I manually updated it to:

      test_file=$(grep 'containerd.sock' /etc/containerd/config.toml | awk -F "=" '{print $2}' | sed -e 's/"//g')
      if test -S $test_file; then
        auditctl -l | grep $test_file
      fi

And it passes now.
I can create a PR but before I'd like to confirm this is not caused by my environment/version.

I'm running docker-ce-20.10.21-3 on rocky8

@y4ney
Copy link
Contributor

y4ney commented Oct 8, 2023

Hi,cesan3
Which operating system are you using? I want to reproduce it.I also have a issue related to 1.1.8. #110 #106

@cesan3
Copy link
Author

cesan3 commented Oct 8, 2023

Hey @y4ney I'm running it on Rocky Linux 8.7

@cesan3
Copy link
Author

cesan3 commented Oct 8, 2023

Hey @y4ney Yeah, I think we can close this as a duplicate of #110.

@cesan3 cesan3 closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants