-
Notifications
You must be signed in to change notification settings - Fork 431
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
base: main
Are you sure you want to change the base?
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
I'm going to provide documentation after reviews. |
Initially, the evt program is able to trigger events in the system by the use of the `trigger` command.
Close: #4412
1. Explain what the PR does
7d5668e chore: add events triggers (scripts)
2eed9e2 chore(cmd): introduce evt program
2eed9e2 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