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

Tests with LXC #43

Open
3 tasks
pyllyukko opened this issue Apr 6, 2019 · 2 comments
Open
3 tasks

Tests with LXC #43

pyllyukko opened this issue Apr 6, 2019 · 2 comments

Comments

@pyllyukko
Copy link
Owner

pyllyukko commented Apr 6, 2019

Maybe use Ansible's lxc_container module. Something like:

  • Deploy fresh host (Debian or Slackware)
  • Take snapshot
  • Install Lynis
  • Take Lynis baseline score
  • Run hardenings
  • Run Lynis again
  • Take the hardened score
  • Revert snapshot?
  • Make conclusions
  • Check modified files with SHA-2 etc.

TODO

Lynis tests to disable

  • FILE-6310 (Checking /tmp, /home and /var directory)
@pyllyukko
Copy link
Owner Author

asciicast

@pyllyukko
Copy link
Owner Author

Trouble ahead. Currently "Create the containers" task fails with:

AttributeError: module 'lxc' has no attribute 'Container'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant