-
Notifications
You must be signed in to change notification settings - Fork 437
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
Introduce evt trigger #4414
Introduce evt trigger #4414
Conversation
Just to note that at first I thought the PR refers to the uprobe triggering mechanism, we may want to rethink one of the names... |
The current idea is to have this new binary How do you see the name conflicting with uname? What do you suggest then? I'm all ears. |
It's just that there is this package: |
I don't think they conflict with each other, perhaps in resemblance only, see: pkg/events/trigger - pkg They're in different hierarchies. Anyway, we might change one or both in the future if it starts to confuse us. 👍🏼 |
5bd63e3
to
892fcc6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
d89241c
to
b1ffb79
Compare
@NDStrahilevitz @rscampos I believe this is ready to merge if you guys don't have anything against it. |
Initially, the evt program is able to trigger events in the system by the use of the `trigger` command.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This is arch specific though I guess? Different arches (probably even different dists), could result in different event sets being outputted. This is particularly relevant for the common
set which you reuse across multiple events. Any plans or notes you have on that?
Yes, it is. We have plans to make triggers run in containers, as we will likely abandon Tracee's |
/fast-forward |
Close: #4412
1. Explain what the PR does
699b50c chore: add events triggers (scripts)
8db6814 chore(cmd): introduce evt program
8db6814 chore(cmd): introduce evt program
2. Explain how to test it
./dist/evt trigger -e magic_write -o 2 -s 100ns Starting triggering 2 ops with 100ns sleep time at 11:08:03.755370282 Finished triggering 2 ops at 11:08:03.757269405 after 1.899113ms
You can notice that it generated 4 magic_writes (which is ok: 2 ops * 2 expected); for understand it, see:
Explanation about the bypass and estimation:
https://github.com/aquasecurity/tracee/pull/4414/files#diff-1664c0263b4c71b676102bd64079e88b4c15b8bed815b5b76afac20b7121f100R151-R155
magic_write trigger estimation:
https://github.com/aquasecurity/tracee/pull/4414/files#diff-ae44cc6ba58bcc55063526ebf3fb632bf1f5ec14fba3051ea09ff2a5014605c3R5-R8
One can set evt to only start to trigger the event after receive SIGUSR1:
The wait signal will timeout after 1min.
3. Other comments