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

Robust security tests #23

Open
MikailBag opened this issue Oct 31, 2020 · 0 comments
Open

Robust security tests #23

MikailBag opened this issue Oct 31, 2020 · 0 comments

Comments

@MikailBag
Copy link
Member

The most important tests, of course, are tests that verify our sandbox is secure. We would like to check that the particular system call failed with a permission error. Currently, test code itself verifies that a particular operation has failed, but IMO this approach is a bit fragile. I think we should separate it.

Each security test should contain a simple program that tries to do something bad and some pattern. The program is then executed in a sandbox and under strace. Finally, test runner makes sure that the strace log matches the pattern (i.e. contains certain lines).

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