Removing support for sharing file on disk between tracee-rules and tracee-ebpf, and EOT #508
Replies: 4 comments 2 replies
-
@yanivagman is there any reason the research team needs this? |
Beta Was this translation helpful? Give feedback.
-
Thanks Grant, this is a good idea. In addition to what you wrote, communicating via a file means it will grow indefinitely and cleaning it up is pretty complicated. which makes me think no one will ever use it. Unless there are any objections, let's go for it |
Beta Was this translation helpful? Give feedback.
-
To clarify, tracee-rules can still read from a regular file on disk, as long as it's in "batch" mode, meaning it's not being written to by another process simultanously |
Beta Was this translation helpful? Give feedback.
-
@grantseltzer, I didn't add the EOT option, but I do remeber what I said to @itaysk before he added this. |
Beta Was this translation helpful? Give feedback.
-
As part of working on #500 I am thinking about the support for interaction between tracee-ebpf and tracee-rules. In particular, right now tracee-ebpf has an option for transmitting an 'EOT' event when it has finished creating events. This feature exists solely for the purpose of an interaction between tracee-ebpf and tracee-rules where they share a file on disk for reading and writing from.
I don't believe this is something we should support. One reason is that this is computationally, and memory inefficient. There are many things that can go wrong, for example tracee-ebpf producing far more events than can be consumed, or the file not being set up to support asynchronous r/w leading to data corruption.
I propose the following:
Beta Was this translation helpful? Give feedback.
All reactions