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

Testing utilities: Check for unintended consequences of blocks #4

Open
teodesian opened this issue Jan 24, 2022 · 2 comments
Open

Testing utilities: Check for unintended consequences of blocks #4

teodesian opened this issue Jan 24, 2022 · 2 comments

Comments

@teodesian
Copy link
Contributor

Checking for unexpected occurrences since the beginning of a block, over a whole file or during the entire harness run could be quite useful.

  • Test::Audit::Log - Ensure unexpected syscalls didn't happen in blocks or packages
  • App::Prove::Plugin::Audit::Log - Ensure unexpected syscalls didn't happen for the entire harness lifecycle, checks an ignore list file
@teodesian
Copy link
Contributor Author

teodesian commented Jan 24, 2022

Primary open question: how to know auditd has flushed the log? I suppose I could touch a tmpfile and wait for it to roll in.

Even then that doesn't account for spooky-action-at-a distance, such as that caused by code which shoves things into a batch executor's queue. I'll make sure to note in the log that handling such is to be left as an exercise for the reader.

@teodesian
Copy link
Contributor Author

Aside from that it'll have to be a full-blown config file rather than an ignore file for a harness plugin.

teodesian added a commit that referenced this issue Feb 4, 2022
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