-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Filtering by cgroups doesn't work #2971
Comments
@aborniak You can either filter by cgroup with
|
@alban It looks like my "execsnoop" version is a little bit outdated. (Installed from default fedora repository. ) It doesn't have "mntnsmap" option.
How I can find out "cgroup id" for using "--cgroupmap" option ? I have tried to get cgroup id in the following way, but I guess it is also wrong , because it also didn't work.
So ,I used "/proc/1058296/ns/pid" instead "/proc/1058296/ns/mnt" |
Hi @aborniak, you can get the cgroup id manually by:
Please notice that there is an issue in Let me know if you find further issues. |
@mauriciovasquezbernal Thank you for explanation. I am also affected with opencontainers/runc#2087 , so I used "podman run -it localhost/local/6_2_0-188rubysource /bin/bash" to confirm that filter works. Have a nice day! |
I want to run execsnoop with --cgroupmap option for tracing new processes inside target container.
Environment:
Target container:
Create MAP and find out namespace ID HEX for container f28b90006a73:
Test:
Result: execsnoop doesn't show any activity
Expected result: see some activity inside container f28b90006a73
@alban @mauriciovasquezbernal Could you advise , might be I did something wrong or misunderstood https://github.com/iovisor/bcc/blob/master/docs/special_filtering.md .
The text was updated successfully, but these errors were encountered: