The tracee cannot trace the syscall event that the container is started before the tracee. #3214
Replies: 4 comments 1 reply
-
@caoliwu thanks for using Tracee. Based on your comment, it's not clear if you're running the app in the same container of tracee, so that information would be interesting to analyse your results. For now, consider this filter options
|
Beta Was this translation helpful? Give feedback.
-
@geyslan thanks for your reply. Tracee is an independent container, and app is also an independent container. App and tracee are different containers. I run the app container first, then the tracee container. Then I log in to the app container and run cat a.txt. Then I check the output log of the tracee container. I find that the tracee container does not trace the system call for reading a.txt in the app container. |
Beta Was this translation helpful? Give feedback.
-
Testing locally with the same flags you provided ( |
Beta Was this translation helpful? Give feedback.
-
Indeed. @caoliwu on my rig I managed to make your test to work as @yanivagman suggested.
|
Beta Was this translation helpful? Give feedback.
-
I'm trying to trace the syscall events of the app container using tracee, and I found that:
1.tracee can trace syscall event
(1)start tracee container
(2)start the app container
Tracee can trace the syscall event of the app container. Everything is good.
2.tracee can't trace syscall event
(1)start the app container
(2)start tracee container
Tracee get nothing. The command I executed to start the tracee container is:
docker run --name tracee_0 --rm -it --pid=host --privileged -v /etc/os-release:/etc/os-release-host:ro -e LIBBPFGO_OSRELEASE_FILE=/etc/os-release-host -v /usr/src:/usr/src:ro -v /lib/modules:/lib/modules:ro -v /tmp/tracee:/tmp/tracee:rw -v /opt/clw/:/opt/clw:rw aquasec/tracee:full --filter container --filter set=syscalls --output option:parse-arguments-fds
Anything wrong with my operation?
Beta Was this translation helpful? Give feedback.
All reactions