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

Lack of unit tests. #9

Open
nuvious opened this issue Aug 23, 2021 · 0 comments
Open

Lack of unit tests. #9

nuvious opened this issue Aug 23, 2021 · 0 comments

Comments

@nuvious
Copy link
Owner

nuvious commented Aug 23, 2021

At the moment there are not unit tests to ensure compatibility with linux, freebsd, etc. Also negative testing should be added to ensure that the module doesn't permit authentication attacks such as impersonation or privilege escalation. Finally there should be tests to ensure that scripts are only run if owned by the user or group the user; both positive tests and negative. Here's a list of the desired positive and negative test to implement.

  • Positive test for scripts in ~/.duress/*
    • Test with 500, 510, 550, 700, 710 & 750 # NOTE: Add support for 510 and 710 permissions.
  • Positive test for scripts in /etc/duress.d/*
  • Negative tests for improper permissions on duress scripts.
  • Docker files for all tests to run them under different distributions; ideally Debian, Ubuntu, BSD, CentOS/Redhat, etc.
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

1 participant